-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
79 lines (71 loc) · 1.89 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
language: cpp
compiler: gcc
_shared_script: &shared_script
- pwd
- ls -la
- mkdir -p build && cd build
- cmake -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE ../BNLNPPS/tpc-rs
- make -j2
# Ubuntu Trusty 14.04
_shared_trusty_job: &shared_trusty_job
addons:
apt:
packages:
- cmake
- libgsl0ldbl
before_script:
- cd $TRAVIS_BUILD_DIR/../../
- wget https://root.cern.ch/download/root_v5.34.38.Linux-ubuntu14-x86_64-gcc4.8.tar.gz
- tar -xzf root_v5.34.38.Linux-ubuntu14-x86_64-gcc4.8.tar.gz
- source root/bin/thisroot.sh
script:
- *shared_script
- ctest -j2 -R quick
# Ubuntu Xenial 16.04
_shared_xenial_job: &shared_xenial_job
addons:
apt:
packages:
- cmake
- libgsl2
before_script:
- cd $TRAVIS_BUILD_DIR/../../
- wget https://root.cern/download/root_v6.20.04.Linux-ubuntu16-x86_64-gcc5.4.tar.gz
- tar -xzf root_v6.20.04.Linux-ubuntu16-x86_64-gcc5.4.tar.gz
- source root/bin/thisroot.sh
script:
- *shared_script
# Ubuntu Bionic 18.04
_shared_bionic_job: &shared_bionic_job
addons:
apt:
packages:
- cmake
- libgsl23
before_script:
- cd $TRAVIS_BUILD_DIR/../../
- wget https://root.cern/download/root_v6.20.04.Linux-ubuntu18-x86_64-gcc7.5.tar.gz
- tar -xzf root_v6.20.04.Linux-ubuntu18-x86_64-gcc7.5.tar.gz
- source root/bin/thisroot.sh
script:
- *shared_script
jobs:
include:
- dist: trusty
env: CMAKE_BUILD_TYPE=Release
<<: *shared_trusty_job
- dist: trusty
env: CMAKE_BUILD_TYPE=Debug
<<: *shared_trusty_job
- dist: xenial
env: CMAKE_BUILD_TYPE=Release
<<: *shared_xenial_job
- dist: xenial
env: CMAKE_BUILD_TYPE=Debug
<<: *shared_xenial_job
- dist: bionic
env: CMAKE_BUILD_TYPE=Release
<<: *shared_bionic_job
- dist: bionic
env: CMAKE_BUILD_TYPE=Debug
<<: *shared_bionic_job