[CI] update travis with new interface (no sudo)
This commit is contained in:
parent
42b65af257
commit
4dbbfa05f9
46
.travis.yml
46
.travis.yml
@ -1,21 +1,32 @@
|
|||||||
# language type:
|
|
||||||
language:
|
language:
|
||||||
- cpp
|
- cpp
|
||||||
- Objective-c
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
# compilator system:
|
|
||||||
compiler:
|
compiler:
|
||||||
- clang
|
- clang
|
||||||
- gcc
|
- gcc
|
||||||
|
|
||||||
|
os:
|
||||||
|
- linux
|
||||||
|
- osx
|
||||||
|
|
||||||
# build branch requested
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
- dev
|
- dev
|
||||||
|
|
||||||
# previous actions:
|
addons:
|
||||||
before_script:
|
apt:
|
||||||
|
sources:
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
|
packages:
|
||||||
|
- g++-4.9
|
||||||
|
|
||||||
|
install:
|
||||||
|
- pip install --user lutin
|
||||||
|
|
||||||
|
before_script:
|
||||||
- cd ..
|
- cd ..
|
||||||
- mkdir bin
|
- mkdir bin
|
||||||
- curl https://storage.googleapis.com/git-repo-downloads/repo > bin/repo
|
- curl https://storage.googleapis.com/git-repo-downloads/repo > bin/repo
|
||||||
@ -33,22 +44,11 @@ before_script:
|
|||||||
- pwd
|
- pwd
|
||||||
- ls -l
|
- ls -l
|
||||||
- if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi
|
- if [ "$CXX" == "clang++" ]; then BUILDER=clang; else BUILDER=gcc; fi
|
||||||
|
- if [ "$CXX" == "g++" ]; then COMPILATOR_OPTION="--compilator-version=4.9"; else COMPILATOR_OPTION=""; fi
|
||||||
|
|
||||||
install:
|
script:
|
||||||
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
|
- lutin -C -P -c$BUILDER $COMPILATOR_OPTION -mdebug -p ege egeCameraPosition egeCollision egeDoubleView egeMeshCreator egeRayTest
|
||||||
- sudo apt-get update -qq
|
|
||||||
- sudo apt-get install -qq libstdc++-4.9-dev
|
|
||||||
- sudo apt-get install -qq g++-4.9
|
|
||||||
- sudo rm /usr/bin/gcc /usr/bin/g++
|
|
||||||
- sudo ln -s /usr/bin/gcc-4.9 /usr/bin/gcc
|
|
||||||
- sudo ln -s /usr/bin/g++-4.9 /usr/bin/g++
|
|
||||||
- sudo pip install lutin
|
|
||||||
|
|
||||||
# build sequence with Lutin :
|
|
||||||
script:
|
|
||||||
- lutin -C -P -c$BUILDER -mdebug -p ege egeCameraPosition egeCollision egeDoubleView egeMeshCreator egeRayTest
|
|
||||||
|
|
||||||
#send e-mail on compilation result:
|
|
||||||
notifications:
|
notifications:
|
||||||
email:
|
email:
|
||||||
- yui.heero@gmail.com
|
- yui.heero@gmail.com
|
||||||
|
Loading…
x
Reference in New Issue
Block a user