Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
further cleanups of the NS3 detection (it breaks on travis)
[simgrid.git] / .travis.yml
1 language: cpp
2 compiler:
3    - gcc
4    - clang
5 addons:
6   apt: # Get recent versions of the compiler, even on Ubuntu Precise
7       sources:
8       - ubuntu-toolchain-r-test
9       packages:
10       - gcc-4.7
11       - g++-4.7
12       - clang
13 # Install libboost-chrono1.48-dev to get boost 1.48 on Ubuntu Precise. What we really want is libboost-dev libboost-all-dev
14 # Still need sudo for update-alternatives
15 before_install:
16    - sudo apt-get update  -qq
17    - sudo apt-get install -y cmake valgrind default-jdk gfortran liblua5.1-dev lua5.1 libboost-chrono1.48-dev libns3-dev ns3
18    - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.7 50
19    - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.7 50
20 script:
21    - cmake -Denable_documentation=OFF -Denable_coverage=OFF -Denable_ns3=ON -Denable_java=ON -Denable_model-checking=OFF -Denable_lua=ON -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_compile_warnings=ON . && make && ctest --output-on-failure --timeout 100
22 branches:
23   only:
24      - master
25 notifications:
26   recipients:
27     - martin.quinson@loria.fr
28   email:
29     on_success: change
30     on_failure: always
31   irc:
32     channels:
33       - "irc.debian.org#simgrid"
34   template:
35     - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"
36 os:
37   - linux
38   - osx
39   - windows