[DEV] update Build interface
This commit is contained in:
parent
fd125a4db8
commit
e5b2b38fd8
19
.travis.yml
19
.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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user