[CI] update travis with new interface (no sudo)

This commit is contained in:
Edouard DUPIN 2015-08-24 23:55:27 +02:00
parent 6f02a7db12
commit 1d1a872b76

View File

@ -1,7 +1,8 @@
# language type: language:
language: cpp - cpp
sudo: false
# compilator system:
compiler: compiler:
- clang - clang
- gcc - gcc
@ -10,7 +11,21 @@ os:
- linux - linux
- osx - osx
# previous actions: branches:
only:
- master
- dev
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.9
install:
- pip install --user lutin
before_script: before_script:
- cd .. - cd ..
- git clone https://github.com/atria-soft/etk.git - git clone https://github.com/atria-soft/etk.git
@ -18,24 +33,12 @@ 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 Gcc to have lisstdc++ 4.9 & gcc 4.9
install:
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- sudo apt-get update -qq
- sudo apt-get install -qq g++-4.9
- sudo apt-get install -qq libstdc++-4.9-dev
- 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: script:
- lutin -C -P -c$BUILDER -mdebug -p enet-test - lutin -C -P -c$BUILDER $COMPILATOR_OPTION -mdebug -p enet-test
#- ./out/Linux_x86_64/debug/staging/$BUILDER/enet-test/usr/bin/enet-test -l6 #- ./out/Linux_x86_64/debug/staging/$BUILDER/enet-test/usr/bin/enet-test -l6
#send e-mail on compilation result:
notifications: notifications:
email: email:
- yui.heero@gmail.com - yui.heero@gmail.com