Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Travis: Try to force python3 on MacOSX (and disable sudo)
[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 # boost 1.48 raises an error on clang:
14 #            /usr/include/boost/signals2/detail/auto_buffer.hpp:565:57: error:
15 #              reference to non-static member function must be called
16 #                        std::uninitialized_fill( buffer_, buffer_ + size, init_value );
17 #                                                                    ^~~~
18 #
19 addons:
20   apt:
21     packages:
22     - cmake
23     - valgrind
24     - default-jdk
25     - gfortran
26     - libboost-dev
27     - libboost-all-dev
28   coverity_scan:
29     project:
30       name: "simgrid/simgrid"
31       description: "Build submitted via Travis CI"
32     notification_email: martin.quinson@ens-rennes.fr
33     build_command_prepend: "cmake -Denable_documentation=OFF -Denable_coverage=OFF -Denable_java=OFF -Denable_model-checking=OFF -Denable_lua=OFF -Denable_compile_optimizations=OFF -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=OFF ."
34     build_command:   "make VERBOSE=1"
35     branch_pattern: coverity
36
37 # Don't install lua from Debian as we need 5.3 and don't have a backport.
38 #   Installing lua from the source does not make any dynamic library.
39 #   - curl http://www.lua.org/ftp/lua-5.3.1.tar.gz | tar xz
40 #   - cd lua-5.3.1 
41 #   -   if [ ${TRAVIS_OS_NAME} = 'linux' ] ; then make linux ; else make macosx ; fi
42 #   -   make INSTALL_TOP=$TRAVIS_BUILD_DIR/LuaInstall install
43 #   - cd ..
44 #   - ls -lR $TRAVIS_BUILD_DIR/LuaInstall
45
46 script:
47    - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update         ; fi
48    - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python3; fi
49    - cmake -Denable_documentation=OFF -Denable_coverage=OFF -Denable_java=ON -Denable_model-checking=OFF -Denable_lua=OFF -Denable_compile_optimizations=OFF -Denable_smpi=ON -Denable_smpi_MPICH3_testsuite=OFF -Denable_compile_warnings=ON . 
50    # run make in the sonar wrapper && run the tests only if the build suceeded
51    - ./tools/internal/travis-sonarqube.sh make VERBOSE=1 && ctest --output-on-failure --timeout 100
52 notifications:
53   recipients:
54     - martin.quinson@ens-rennes.fr
55   email:
56     on_success: change
57     on_failure: always
58   irc:
59     channels:
60       - "irc.debian.org#simgrid"
61   template:
62     - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"
63 os:
64   - linux
65   - osx