Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://github.com/Onesphore/simgrid into Onesphore-master
[simgrid.git] / .travis.yml
1 #┬áNS3 is disabled because the version in ubuntu precise does not lead
2 # to the same timings (precision error?)
3 # Reenable with 
4 #   cmake -Denable_ns3
5 #   apt-get libns3-dev ns3
6 #
7 #
8 #sudo: required
9 dist: trusty
10 language: cpp
11 compiler:
12    - gcc
13 #  - clang 
14 addons:
15   apt:
16     update: true
17     sources:
18     - sourceline: ppa:samuel-bachmann/boost # Get boost 1.60 for Trusty
19     packages:
20     - cmake
21     - valgrind
22     - default-jdk
23     - gfortran
24     - libboost1.60-dev
25     - libboost1.60-all-dev
26     - libdw-dev
27     - libevent-dev
28     - libunwind8-dev
29   coverity_scan:
30     project:
31       name: "simgrid/simgrid"
32       description: "Build submitted via Travis CI"
33     notification_email: martin.quinson@ens-rennes.fr
34     build_command_prepend: "cmake -Denable_documentation=OFF -Denable_coverage=ON -Denable_java=OFF -Denable_model-checking=OFF -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=OFF ."
35     build_command:   "make VERBOSE=1"
36     branch_pattern: coverity
37
38 # Don't install lua from Debian as we need 5.3 and don't have a backport.
39 #   Installing lua from the source does not make any dynamic library.
40 #   - curl http://www.lua.org/ftp/lua-5.3.1.tar.gz | tar xz
41 #   - cd lua-5.3.1 
42 #   -   if [ ${TRAVIS_OS_NAME} = 'linux' ] ; then make linux ; else make macosx ; fi
43 #   -   make INSTALL_TOP=$TRAVIS_BUILD_DIR/LuaInstall install
44 #   - cd ..
45 #   - ls -lR $TRAVIS_BUILD_DIR/LuaInstall
46
47 script:
48    - if [[ "$TRAVIS_OS_NAME" == "osx"   ]]; then brew update; fi
49    - if [[ "$TRAVIS_OS_NAME" == "osx"   ]]; then brew upgrade python; fi
50    - if [[ "$TRAVIS_OS_NAME" == "osx"   ]]; then cmake -Denable_model-checking=OFF -Denable_documentation=OFF -Denable_coverage=ON -Denable_java=ON -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=ON .; fi
51    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cmake -Denable_model-checking=ON  -Denable_documentation=OFF -Denable_coverage=ON -Denable_java=ON -Denable_lua=OFF -Denable_compile_optimizations=ON -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=ON -Denable_compile_warnings=ON .; fi
52    # run make and ctest in the sonar wrapper on master/linux; run it directly in PR or OSX
53    - if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "${TRAVIS_PULL_REQUEST}" == "false" ]]; then ./tools/internal/travis-sonarqube.sh make VERBOSE=1; else make VERBOSE=1 && ctest --output-on-failure ; fi
54 notifications:
55   recipients:
56     - martin.quinson@ens-rennes.fr
57   email:
58     on_success: change
59     on_failure: always
60   irc:
61     on_success: change
62     on_failure: always
63     channels:
64       - "irc.debian.org#simgrid"
65   template:
66     - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"
67 os:
68   - linux
69   - osx