-
Notifications
You must be signed in to change notification settings - Fork 60
/
.travis.yml
68 lines (68 loc) · 2.78 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
language: python
env:
- TEST_PROFILE="test.autotools.yaml"
- TEST_PROFILE="test.boost.yaml"
- TEST_PROFILE="test.clawpack.gitsubmodules.yaml"
- TEST_PROFILE="test.cmake.yaml"
- TEST_PROFILE="test.host-scipy.yaml"
- TEST_PROFILE="test.matplotlib.yaml"
- TEST_PROFILE="test.scipy-stack.yaml" PYVER="2.7"
- TEST_PROFILE="test.scipy-stack.yaml" PYVER="3.3"
- TEST_PROFILE="test.scipy-stack.yaml" PYVER="3.4"
- TEST_PROFILE="test.packages2.yaml"
- TEST_PROFILE="test.packages3.yaml"
- TEST_PROFILE="test.packages4.yaml"
- TEST_PROFILE="test.netcdf4.yaml"
- TEST_PROFILE="test.vxl.yaml"
- TEST_PROFILE="test.dolfin.yaml"
python:
- 2.7
before_install:
- sudo apt-get update -qq
- sudo apt-get install gfortran pv
- if [[ "${TEST_PROFILE}" == "test.packages1.yaml" ]]; then
sudo apt-get install liblapack-dev;
fi
- if [[ "${TEST_PROFILE}" == "test.packages2.yaml" ]]; then
sudo apt-get install mpich2 liblapack-dev;
fi
- if [[ "${TEST_PROFILE}" == "test.packages3.yaml" ]]; then
sudo apt-get install mpich2 liblapack-dev;
fi
- if [[ "${TEST_PROFILE}" == "test.cmake.yaml" ]]; then
sudo apt-get install mpich2;
fi
- if [[ "${TEST_PROFILE}" == "test.boost.yaml" ]]; then
sudo apt-get install mpich2;
fi
- if [[ "${TEST_PROFILE}" == "test.clawpack.gitsubmodules.yaml" ]]; then
sudo apt-get install liblapack-dev;
fi
- if [[ "${TEST_PROFILE}" == "test.netcdf4.yaml" ]]; then
sudo apt-get install mpich2;
fi
- if [[ "${TEST_PROFILE}" == "test.host-scipy.yaml" ]]; then
sudo apt-get install python-scipy;
fi
- if [[ "${TEST_PROFILE}" == "test.dolfin.yaml" ]]; then
sudo apt-get install cmake libopenmpi-dev python-dev libblas-dev liblapack-dev wget libboost-program-options1.48-dev libboost-filesystem1.48-dev libboost-serialization1.48-dev libboost-thread1.48-dev libboost-iostreams1.48-dev libboost-math1.48-dev libboost-timer1.48-dev libboost-chrono1.48-dev;
fi
install:
- git clone https://github.com/hashdist/hashdist
- export PATH=`pwd`/hashdist/bin:$PATH
script:
- cp tests/$TEST_PROFILE $TEST_PROFILE
- set -o pipefail
# Beware of Travis-munging: https://github.com/travis-ci/travis-ci/issues/497
- if [[ -z "${PYVER}" ]]; then hit build -v $TEST_PROFILE 2>&1 | pv -i 15 -n | cat > log.txt; fi
- if [[ -n "${PYVER}" ]]; then hit build -v $TEST_PROFILE pyver=$PYVER python_site_packages_rel=lib/python${PYVER}/site-packages 2>&1 | pv -i 15 -n | cat > log.txt; fi
- tail -n 100 log.txt
verify:
- if [[ "${TEST_PROFILE}" == "test.matplotlib.yaml" ]]; then
./test.matplotlib/bin/python -c "from mpl_toolkits.mplot3d import Axes3D"
fi
- if [[ "${TEST_PROFILE}" == "test.dolfin.yaml" ]]; then
./test.dolfin/bin/python -c "from dolfin import *"
fi
notifications:
email: false