Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Get g++-4.7 from a PPA on travis.
authorMartin Quinson <martin.quinson@loria.fr>
Sat, 25 Jul 2015 10:30:02 +0000 (12:30 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sat, 25 Jul 2015 10:58:47 +0000 (12:58 +0200)
.travis.yml

index 364c145..b27fbd7 100644 (file)
@@ -1,10 +1,19 @@
 language: cpp
 compiler:
    - gcc
-#   - clang # does not work for us on debian stable (boost is too old there)
-before_install: 
+   - clang
+addons:
+  apt: # Get recent versions of the compiler, even on Ubuntu Precise
+      sources:
+      - ubuntu-toolchain-r-test
+      packages:
+      - gcc-4.7
+      - g++-4.7
+      - clang
+# Still need sudo to get the recent version of gcc actually used
+before_install:
    - sudo apt-get update  -qq
-   - sudo apt-get install -y g++-4.7 gcc-4.7 cmake valgrind default-jdk gfortran liblua5.1-dev lua5.1 libboost-dev libboost-all-dev libns3-dev ns3
+   - sudo apt-get install -y cmake valgrind default-jdk gfortran liblua5.1-dev lua5.1 libboost-dev libboost-all-dev libns3-dev ns3
    - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 50
    - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 50
 script: