forked from scikit-hep/root_numpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (49 loc) · 1.66 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
# travis-ci.org build & test configuration
language: python
python:
- "2.7"
env:
#- ROOT=5-32-00
#- ROOT=5-32-01
#- ROOT=5-32-02
#- ROOT=5-32-03
- ROOT=5-32-04
#- ROOT=5-33-02
#- ROOT=5-33-02b
#- ROOT=5-34-00
#- ROOT=5-34-04
#- ROOT=5-34-05
#- ROOT=5-34-06
#- ROOT=5-34-07
- ROOT=5-34-08
#- ROOT=5-99-02
before_install:
# Use system python, not virtualenv, because building the dependencies from source takes too long
- deactivate # the virtualenv
# Needed because sometimes travis' repositories get out of date
- time sudo apt-get update -qq
# Install the dependencies we need
- time sudo apt-get install -qq python-numpy python-sphinx
- time sudo apt-get install python-pip
- time sudo pip install coverage
- time sudo pip install coveralls
- time sudo pip install nose
install:
# Install a ROOT binary that we custom-built in a 64-bit Ubuntu VM
# for the correct Python / ROOT version
- time wget --no-check-certificate https://copy.com/rtIyUdxgjt7h/ci/root_builds/root_v${ROOT}_python_${TRAVIS_PYTHON_VERSION}.tar.gz
- time tar zxf root_v${ROOT}_python_${TRAVIS_PYTHON_VERSION}.tar.gz
- mv root_v${ROOT}_python_${TRAVIS_PYTHON_VERSION} root
- source root/bin/thisroot.sh
script:
# Check if root and PyROOT work ok
- time root -l -q
- time python -c 'import ROOT; ROOT.TBrowser()'
# Now run the actual tests (from the installed version, not the local build dir)
- time make install-user
- time make test-installed
- time make doc
# run tests with coverage
- time make test-coverage </dev/null
after_success:
- time coveralls