Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix linkage warning
[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 python: "3.4"
11 language: cpp
12 compiler:
13    - gcc
14 #  - clang # boost 1.48 raises an error on clang:
15 #            /usr/include/boost/signals2/detail/auto_buffer.hpp:565:57: error:
16 #              reference to non-static member function must be called
17 #                        std::uninitialized_fill( buffer_, buffer_ + size, init_value );
18 #                                                                    ^~~~
19 #
20 addons:
21   apt:
22     packages:
23     - cmake
24     - valgrind
25     - default-jdk
26     - gfortran
27     - libboost-dev
28     - libboost-all-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=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 ."
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 # Still need sudo for update-alternatives
48 script:
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