ewol/.travis.yml

58 lines
1.5 KiB
YAML
Raw Normal View History

2014-09-09 07:16:35 +02:00
# language type:
2015-01-12 22:14:36 +01:00
language:
- cpp
- Objective-c
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
- dev
2014-09-09 07:16:35 +02:00
# previous actions:
2014-09-09 07:28:21 +02:00
before_script:
2015-05-07 23:40:38 +02:00
- cd ..
- mkdir bin
- curl https://storage.googleapis.com/git-repo-downloads/repo > bin/repo
- chmod a+x bin/repo
- git config --global user.email "travis@travis.com"
- git config --global user.name "Travis"
- git config --global color.ui "auto"
- git config --global core.editor "vi"
- mkdir WORKING_DIRECTORY
- cd WORKING_DIRECTORY
- ../bin/repo init -u https://github.com/HeeroYui/manifest.git
- ../bin/repo sync -j8
- rm -rf ewol
- cd ..
- pwd
- ls -l
2015-01-14 21:10:23 +01:00
- if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi
2014-09-09 07:16:35 +02:00
2014-09-09 07:40:12 +02:00
install:
2014-10-17 21:56:43 +02:00
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
2015-01-14 21:10:23 +01:00
- sudo apt-get install -qq libstdc++-4.9-dev
2015-02-17 22:04:40 +01:00
- sudo apt-get install -qq g++-4.9
2014-10-17 21:56:43 +02:00
- sudo rm /usr/bin/gcc /usr/bin/g++
2015-02-17 22:04:40 +01:00
- sudo ln -s /usr/bin/gcc-4.9 /usr/bin/gcc
- sudo ln -s /usr/bin/g++-4.9 /usr/bin/g++
2015-05-17 11:32:25 +02:00
- sudo pip install lutin
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:
2015-05-17 11:32:25 +02:00
- lutin -C -P -c$BUILDER -mdebug -p ewol etk_test exml_test ejson_test enettest
2015-01-14 21:10:23 +01:00
- ./out/Linux_x86_64/debug/staging/$BUILDER/etk_test/usr/bin/etk_test
- ./out/Linux_x86_64/debug/staging/$BUILDER/ejson_test/usr/bin/ejson_test
- ./out/Linux_x86_64/debug/staging/$BUILDER/exml_test/usr/bin/exml_test
#send e-mail on compilation result:
notifications:
email:
- yui.heero@gmail.com