2014-09-09 07:16:35 +02:00
|
|
|
# language type:
|
2014-09-09 06:10:01 +02:00
|
|
|
language: cpp
|
2014-09-09 07:16:35 +02:00
|
|
|
|
2014-09-09 07:28:21 +02:00
|
|
|
# compilator system:
|
|
|
|
compiler:
|
|
|
|
- clang
|
|
|
|
- gcc
|
|
|
|
|
2014-09-09 07:16:35 +02:00
|
|
|
# build branch requested
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
2014-09-09 07:23:31 +02:00
|
|
|
- dev
|
2014-09-09 07:16:35 +02:00
|
|
|
|
|
|
|
# previous actions:
|
2014-09-09 07:28:21 +02:00
|
|
|
before_script:
|
|
|
|
- git submodule init
|
|
|
|
- git submodule update
|
2014-09-09 07:16:35 +02:00
|
|
|
|
2014-09-09 07:40:12 +02:00
|
|
|
install:
|
2014-09-09 08:16:34 +02:00
|
|
|
- if [ "$CXX" == "g++" ]; then sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then sudo apt-get update -qq; fi
|
2014-09-09 20:48:19 +02:00
|
|
|
- if [ "$CXX" == "g++" ]; then sudo apt-get install -qq g++-4.8; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then sudo rm /usr/bin/gcc /usr/bin/g++; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++; fi
|
2014-09-09 07:40:12 +02:00
|
|
|
|
|
|
|
|
2014-09-09 07:16:35 +02:00
|
|
|
# build sequence with Lutin :
|
2014-09-09 07:28:21 +02:00
|
|
|
script:
|
2014-09-11 21:25:06 +02:00
|
|
|
- if [ "$CXX" == "clang++" ]; then ./build/lutin.py -cclang -mdebug -p ewol etktest exmltest ejsontest enettest; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then ./build/lutin.py -cgcc -mdebug -p ewol etktest exmltest ejsontest enettest; fi
|
|
|
|
|
|
|
|
after_script:
|
|
|
|
- if [ "$CXX" == "clang++" ]; then ./out/Linux/debug/staging/clang/etktest//usr/bin/etktest; fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then ./out/Linux/debug/staging/clang/exmltest//usr/bin/exmltest; fi
|
|
|
|
- if [ "$CXX" == "clang++" ]; then ./out/Linux/debug/staging/clang/ejsontest//usr/bin/ejsontest; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then ./out/Linux/debug/staging/gcc/etktest//usr/bin/etktest; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then ./out/Linux/debug/staging/gcc/exmltest//usr/bin/exmltest; fi
|
|
|
|
- if [ "$CXX" == "g++" ]; then ./out/Linux/debug/staging/gcc/ejsontest//usr/bin/ejsontest; fi
|
2014-09-09 07:23:31 +02:00
|
|
|
|
|
|
|
#send e-mail on compilation result:
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
- yui.heero@gmail.com
|