From e5b2b38fd89e3b94e230f12946a92adc3554771c Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 14 Sep 2015 21:11:04 +0200 Subject: [PATCH] [DEV] update Build interface --- .travis.yml | 19 ++++++++++++------- lutin_date.py | 9 +++++++-- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.travis.yml b/.travis.yml index 04e8b01..73c6a10 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,10 +3,6 @@ language: sudo: false -compiler: - - clang - - gcc - os: - linux - osx @@ -26,13 +22,22 @@ addons: install: - pip install --user lutin +env: + - CONF=debug BOARD=Linux BUILDER=clang GCOV= + - CONF=release BOARD=Linux BUILDER=clang GCOV= + - CONF=debug BOARD=Linux BUILDER=gcc GCOV= + - CONF=release BOARD=Linux BUILDER=gcc GCOV= + - CONF=debug BOARD=Linux BUILDER=gcc GCOV=--gcov + before_script: - cd .. - - if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi - - if [ "$CXX" == "g++" ]; then COMPILATOR_OPTION="--compilator-version=4.9"; else COMPILATOR_OPTION=""; fi + - wget http://atria-soft.com/ci/coverage_send.py + - wget http://atria-soft.com/ci/test_send.py + - wget http://atria-soft.com/ci/warning_send.py + - if [ "$BUILDER" == "gcc" ]; then COMPILATOR_OPTION="--compilator-version=4.9"; else COMPILATOR_OPTION=""; fi script: - - lutin -C -P -c$BUILDER $COMPILATOR_OPTION -mdebug -p date + - lutin -w -j4 -C -P -c $BUILDER $COMPILATOR_OPTION -m $CONF $GCOV -p date notifications: email: diff --git a/lutin_date.py b/lutin_date.py index f637a27..65b26a3 100644 --- a/lutin_date.py +++ b/lutin_date.py @@ -14,7 +14,12 @@ def create(target): myModule.add_src_file([ - 'date/date.cpp']) + 'date/date.cpp' + ]) + + myModule.add_header_file([ + 'date/date.h' + ]) now = datetime.datetime.now() @@ -28,7 +33,7 @@ def create(target): "-DBUILD_MINUTE=\""+str(now.minute)+"\"", "-DBUILD_SECOND=\""+str(now.second)+"\""]) - myModule.add_export_path(tools.get_current_path(__file__)) + myModule.add_path(tools.get_current_path(__file__)) # add the currrent module at the return myModule