1 notifications:
2 email: false
4 language: cpp
6 cache:
7 directories:
8 - $HOME/.ccache
10 os:
11 - linux
13 addons:
14 apt:
15 sources:
16 - ubuntu-toolchain-r-test
17 - llvm-toolchain-precise-3.8
18 packages:
19 - gdb
20 - g++-4.9
21 - gfortran-4.9
22 - liblapack-dev
23 - clang-3.8
25 branches:
26 only:
27 - master
29 before_install:
30 - cat /proc/sys/kernel/core_pattern
31 - export XROOT=~/xroot
32 - tools/extras/travis_install_bindeps.sh $XROOT
33 - export PATH=$XROOT/usr/bin:$PATH
35 before_script:
36 - which ccache
37 - ccache --version
38 - ccache --show-stats
39 - ccache --zero-stats --max-size=3G
41 env:
42 - CI_TARGETS="all ext" # Job1: Build everything.
43 - CI_TARGETS="test" # Job2: Test libraries. #### ext_test? adds 5min compile, runs 1 test.
45 script:
46 # See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html and
47 # http://peter.eisentraut.org/blog/2014/12/01/ccache-and-clang-part-3/
48 # for the explanation why extra switches needed for clang with ccache.
49 - CXX="ccache clang++-3.8 -Qunused-arguments -fcolor-diagnostics -Wno-tautological-compare"
50 CFLAGS="-march=native"
51 LDFLAGS="-llapack"
52 INCDIRS="$XROOT/usr/include"
53 LIBDIRS="$XROOT/usr/lib"
54 tools/extras/travis_script.sh
55 # To troubleshoot cache, add to above: CI_TARGETS=util CCACHE_LOGFILE=~/ccache.log
57 before_cache:
58 - ccache --show-stats
60 after_failure:
61 - tools/extras/travis_show_failures.sh