forked from Idlak/idlak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (70 loc) · 2.14 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
notifications:
email: false
language: cpp
cache:
directories:
- $HOME/.ccache
os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
- deadsnakes
packages:
- gdb
- g++-4.9
- gfortran-4.9
- liblapack-dev
- clang-3.8
- csh
- python3.6
- libpython3.6-dev
- sox
- swig3.0
branches:
only:
- master
before_install:
- cat /proc/sys/kernel/core_pattern
- export XROOT=~/xroot
- tools/extras/travis_install_bindeps.sh $XROOT
- export PATH=$XROOT/usr/bin:$PATH
- export SWIG=swig3.0
- wget https://bootstrap.pypa.io/get-pip.py
- sudo ln -s /usr/bin/python3.6 /usr/local/bin/python3
- sudo ln -s /usr/bin/python3.6 /usr/local/bin/python
- sudo python get-pip.py
install:
- sudo pip install -r idlak-server/requirements.txt -v
before_script:
- which ccache
- ccache --version
- ccache --show-stats
- ccache --zero-stats --max-size=3G
env:
- CI_TARGETS="depend" # Job1: Build main programs.
- CI_TARGETS="all" # Job2: Build main programs.
- CI_TARGETS="ext_depend" # Job3: Build extra programs
- CI_TARGETS="online" # Job4.a: Build extra programs
- CI_TARGETS="onlinebin" # Job4.b: Build extra programs
- CI_TARGETS="pyIdlak" # Job4.c: Build extra programs
- CI_TARGETS="test" # Job5: Test libraries.
- CI_TARGETS="test_server" # Job6: Test server.
#### ext_test? adds 5min compile, runs 1 test.
script:
# See http://petereisentraut.blogspot.com/2011/05/ccache-and-clang.html and
# http://peter.eisentraut.org/blog/2014/12/01/ccache-and-clang-part-3/
# for the explanation why extra switches needed for clang with ccache.
- CXX="ccache clang++-3.8 -Qunused-arguments -fcolor-diagnostics -Wno-tautological-compare"
CFLAGS="-march=native -fPIC"
LDFLAGS="-llapack -Wl,-fuse-ld=gold"
INCDIRS="$XROOT/usr/include"
LIBDIRS="$XROOT/usr/lib"
tools/extras/travis_script.sh
# To troubleshoot cache, add to above: CI_TARGETS=util CCACHE_LOGFILE=~/ccache.log
before_cache:
- ccache --show-stats
after_failure:
- tools/extras/travis_show_failures.sh