[DEV] update Build interface

This commit is contained in:
Edouard DUPIN 2015-09-14 21:11:04 +02:00
parent fd125a4db8
commit e5b2b38fd8
2 changed files with 19 additions and 9 deletions

View File

@ -3,10 +3,6 @@ language:
sudo: false sudo: false
compiler:
- clang
- gcc
os: os:
- linux - linux
- osx - osx
@ -26,13 +22,22 @@ addons:
install: install:
- pip install --user lutin - 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: before_script:
- cd .. - cd ..
- if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi - wget http://atria-soft.com/ci/coverage_send.py
- if [ "$CXX" == "g++" ]; then COMPILATOR_OPTION="--compilator-version=4.9"; else COMPILATOR_OPTION=""; fi - 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: 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: notifications:
email: email:

View File

@ -14,7 +14,12 @@ def create(target):
myModule.add_src_file([ myModule.add_src_file([
'date/date.cpp']) 'date/date.cpp'
])
myModule.add_header_file([
'date/date.h'
])
now = datetime.datetime.now() now = datetime.datetime.now()
@ -28,7 +33,7 @@ def create(target):
"-DBUILD_MINUTE=\""+str(now.minute)+"\"", "-DBUILD_MINUTE=\""+str(now.minute)+"\"",
"-DBUILD_SECOND=\""+str(now.second)+"\""]) "-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 # add the currrent module at the
return myModule return myModule