-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
69 lines (58 loc) · 2.44 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
sudo: false
dist: trusty
language: cpp
compiler:
- gcc
- clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
branches:
only:
- master
# Make sure cmake picks up the compiler we want
install:
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
before_script:
# Install desired version of ROOT
- mkdir -p /tmp/root_v5.34.30
- wget http://root.cern.ch/download/root_v5.34.30.source.tar.gz -P /tmp/
- tar -xzf /tmp/root_v5.34.30.source.tar.gz -C /tmp/root_v5.34.30/ --strip-components=1
- wget http://root.cern.ch/download/root_v5.34.30.Linux-ubuntu12-x86_64-gcc4.6.tar.gz -P /tmp/
- tar -xzf /tmp/root_v5.34.30.Linux-ubuntu12-x86_64-gcc4.6.tar.gz -C /tmp/root_v5.34.30/ --strip-components=1
# Move some ROOT header files to common include directory
- rsync -auv /tmp/root_v5.34.30/math/mathmore/inc/Math /tmp/root_v5.34.30/include/
# Install ROOT v6
- mkdir -p /tmp/root_v6.06.06
- wget http://root.cern.ch/download/root_v6.06.06.source.tar.gz -P /tmp/
- tar -xzf /tmp/root_v6.06.06.source.tar.gz -C /tmp/root_v6.06.06/ --strip-components=1
- wget http://root.cern.ch/download/root_v6.06.06.Linux-ubuntu14-x86_64-gcc4.8.tar.gz -P /tmp/
- tar -xzf /tmp/root_v6.06.06.Linux-ubuntu14-x86_64-gcc4.8.tar.gz -C /tmp/root_v6.06.06/ --strip-components=1
# Move some ROOT header files to common include directory
- rsync -auv /tmp/root_v6.06.06/math/mathmore/inc/Math /tmp/root_v6.06.06/include/
# Install dependencies
- git clone --branch=travis-data https://github.com/star-bnl/star-picoDst.git /tmp/star-cvs-headers
- tar -xzf /tmp/star-cvs-headers/star-cvs-headers-e68fb8a1.tar.gz -C /tmp/star-cvs-headers/
script:
# Build libs with ROOT v5
- source /tmp/root_v5.34.30/bin/thisroot.sh
- root-config --libs
- root-config --cflags
- mkdir build/ && cd build/ && pwd
- cmake -D CMAKE_INSTALL_PREFIX=./ -D CMAKE_BUILD_TYPE=Release -D STAR_ROOT=/tmp/star-cvs-headers/ ../
- make -j2 && make install && make clean
- pwd && ls -la ./ && ls -la lib/
# Clean-up before next build
- cd ../ && rm -fr build/
# Build libs with ROOT v6
- source /tmp/root_v6.06.06/bin/thisroot.sh
- root-config --libs
- root-config --cflags
- mkdir build/ && cd build/ && pwd
- cmake -D CMAKE_INSTALL_PREFIX=./ -D CMAKE_BUILD_TYPE=Release -D STAR_ROOT=/tmp/star-cvs-headers/ ../
- make -j2 && make install && make clean
- pwd && ls -la ./ && ls -la lib/