Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
please sonar
[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 # Still need sudo for update-alternatives
47 script:
48    - 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 . 
49    # run make in the sonar wrapper && run the tests only if the build suceeded
50    - ./tools/internal/travis-sonarqube.sh make VERBOSE=1 && ctest --output-on-failure --timeout 100
51 notifications:
52   recipients:
53     - martin.quinson@ens-rennes.fr
54   email:
55     on_success: change
56     on_failure: always
57   irc:
58     channels:
59       - "irc.debian.org#simgrid"
60   template:
61     - "%{repository}/%{branch} (%{commit} - %{author}): %{message}"
62 os:
63   - linux
64   - osx