You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+51-31Lines changed: 51 additions & 31 deletions
Original file line number
Diff line number
Diff line change
@@ -4,53 +4,73 @@ sudo: required
4
4
5
5
dist: trusty
6
6
7
-
compiler:
8
-
- gcc
9
-
10
7
branches:
11
8
only:
12
9
- master
13
10
- v1.6-dev
14
11
15
-
os:
16
-
- linux
17
-
- osx
18
-
19
-
before_install:
20
-
- $CXX --version
21
-
- $CC --version
22
-
23
-
- if [ $TRAVIS_OS_NAME == linux ]; then wget https://root.cern.ch/download/root_v5.34.36.Linux-ubuntu14-x86_64-gcc4.8.tar.gz && tar -xvf root_v5.34.36.Linux-ubuntu14-x86_64-gcc4.8.tar.gz && source root/bin/thisroot.sh; fi
# modern (ROOT 6, QT 5, Python 3) / old (ROOT 5, QT 4, Python 2)
31
+
# results in 8 combinations
32
+
# documentation to be "compiled" in maximum one option branch
33
+
34
+
matrix:
35
+
include:
36
+
- os: linux
37
+
compiler: gcc
38
+
env: OPTION_BRANCH=modern
39
+
- os: linux
40
+
compiler: gcc
41
+
env: OPTION_BRANCH=old
42
+
- os: linux
43
+
compiler: clang
44
+
env: OPTION_BRANCH=modern
45
+
- os: linux
46
+
compiler: clang
47
+
env: OPTION_BRANCH=old
48
+
- os: osx
49
+
compiler: gcc
50
+
env: OPTION_BRANCH=modern
51
+
- os: osx
52
+
compiler: gcc
53
+
env: OPTION_BRANCH=old
54
+
- os: osx
55
+
compiler: clang
56
+
env: OPTION_BRANCH=modern
57
+
- os: osx
58
+
compiler: clang
59
+
env: OPTION_BRANCH=old
24
60
25
-
- if [ $TRAVIS_OS_NAME == osx ]; then wget https://root.cern.ch/download/root_v5.34.36.macosx64-10.9-clang60.tar.gz && tar -xvf root_v5.34.36.macosx64-10.9-clang60.tar.gz && source root/bin/thisroot.sh; fi
26
61
27
-
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get -qq update; fi
28
-
29
-
# OS X: update brew cache:
30
-
- if [ $TRAVIS_OS_NAME == osx ]; then brew update; fi
31
-
- if [[ "$TRAVIS_OS_NAME" == "osx" && "$CC" == "gcc" ]]; then CC=gcc-4.9; fi
32
-
- if [ $TRAVIS_OS_NAME == "osx" ]; then wget https://cmake.org/files/v3.4/cmake-3.4.3-Darwin-x86_64.tar.gz && tar xfz cmake-3.4.3-Darwin-x86_64.tar.gz && export PATH="`pwd`/cmake-3.4.3-Darwin-x86_64/CMake.app/Contents/bin":$PATH:; fi
33
-
- if [ $TRAVIS_OS_NAME == "osx" ]; then echo $PATH; fi
34
62
63
+
before_install:
64
+
- ./.travis/before_install.sh
35
65
36
66
install:
37
-
# Install package dependencies for Linux:
38
-
- if [ $TRAVIS_OS_NAME == linux ]; then sudo apt-get install -y libusb-1.0-0 libusb-1.0-0-dev python2.7 python-numpy cmake qt4-dev-tools; fi
39
-
40
-
# Install package dependencies for Mac OS X:
41
-
- if [ $TRAVIS_OS_NAME == osx ]; then brew unlink cmake; fi
42
-
- if [ $TRAVIS_OS_NAME == osx ]; then brew install python libusb qt; fi
43
-
# Install numpy via pip:
44
-
- if [ $TRAVIS_OS_NAME == osx ]; then easy_install pip && pip install numpy; fi
67
+
- ./.travis/install.sh
45
68
46
69
before_script:
47
-
48
70
# For Mac OS X we still need to source the root environment:
49
71
# - if [ $TRAVIS_OS_NAME == osx ]; then source $(brew --prefix root)/libexec/thisroot.sh; fi
0 commit comments