forked from scikit-hep/root_numpy
/
test.sh
24 lines (20 loc) · 889 Bytes
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
# This script is meant to be called by the "script" step defined in
# .travis.yml. See http://docs.travis-ci.com/ for more details.
# The behavior of the script is controlled by environment variabled defined
# in the .travis.yml in the top level folder of the project.
set -e
gcc -dumpversion
g++ -dumpversion
python --version
python -c "import numpy; print('numpy %s' % numpy.__version__)"
# Check if ROOT and PyROOT work
#root -l -q
python -c "import ROOT; ROOT.TBrowser()"
python -c "from __future__ import print_function; import ROOT; print(ROOT.gROOT.GetVersion())"
export PYTHONPATH=/home/travis/.local/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/:$PYTHONPATH
# Install into the user site-packages directory and run tests on that
time make install-user
time make test-installed
# Run tests in the local directory with coverage
time make test-coverage </dev/null