.travis.yml 1.12 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14
language: c
compiler:
  - gcc
install:
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  - sudo apt-get update -qq
# We remove g++ because Travis Ubuntu VM is < g++-4.8
  - sudo apt-get remove g++ gcc
  - sudo apt-get install -qq g++-4.8 gcc-4.8
  - sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc
  - sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++
#
  - sudo apt-get install -qq libglew-dev libfreetype* freeglut3-dev
# AntTweakBar install
15
  - mkdir TRAVIS_TMP/ && cd TRAVIS_TMP 
16 17 18 19 20 21 22 23 24 25
  - wget -O AntTweakBar_116.zip http://sourceforge.net/projects/anttweakbar/files/latest/download?source=dlp 
  - unzip AntTweakBar_116.zip
  - cd AntTweakBar/src
# And as it uses C++ ... we need to link with g++, but this Makefile's version doesn't !
# So we modify the makefile with sed !
  - sed -i "s/LINK     	= gcc/LINK     	= g++/" Makefile
  - make
  - sudo mv ../lib/libAntTweakBar.so /usr/lib/ 
  - sudo mv ../lib/libAntTweakBar.so.1 /usr/lib/
  - sudo mv ../include/* /usr/include/
26
  - cd ../../
27 28
  - rm -rf AntTweakBar_116.zip
  - rm -rf AntTweakBar
Pierre-Emmanuel Lallemant's avatar
merge  
Pierre-Emmanuel Lallemant committed
29 30
# another requirement
  - sudo apt-get install libxmu-dev libxi-dev
31
#
32
  - cd ..
33
script:
Pierre-Emmanuel Lallemant's avatar
merge  
Pierre-Emmanuel Lallemant committed
34
  - cmake . && make