From 13ec66de8e6ad66d65758f567cbec9c6e0661766 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Mon, 24 Aug 2015 23:55:27 +0200 Subject: [PATCH] [CI] update travis with new interface (no sudo) --- .travis.yml | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/.travis.yml b/.travis.yml index 5910ebb..79759bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,7 @@ -language: cpp +language: + - cpp + +sudo: false compiler: - clang @@ -8,7 +11,22 @@ os: - linux - osx -before_script: +branches: + only: + - master + - dev + +addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.9 + +install: + - pip install --user lutin + +before_script: - cd .. - git clone https://github.com/generic-library/gtest-lutin.git --recurse-submodules - git clone https://github.com/generic-library/speex-dsp-lutin.git --recurse-submodules @@ -20,19 +38,10 @@ before_script: - pwd - ls -l - 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: - - 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 - -script: - - lutin -C -P -c$BUILDER -mdebug -p audio-drain-test +script: + - lutin -C -P -c$BUILDER $COMPILATOR_OPTION -mdebug -p audio-drain-test - ./out/Linux_x86_64/debug/staging/$BUILDER/audio-drain-test/usr/bin/audio-drain-test -l6 notifications: