-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (72 loc) · 2.77 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
70
71
72
language: c
os:
- linux
- osx
env:
- PYVERSION="2.7" NENGINES=1
- PYVERSION="2.7" NENGINES=9
- PYVERSION="3.4" NENGINES=9
- PYVERSION="3.5" NENGINES=9
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
ulimit -n 4096; # bump osx ulimit
fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sudo add-apt-repository -y ppa:andrikos/ppa; # PPA with parallel hdf5
sudo apt-get update;
fi
- |
if [[ ${PYVERSION:0:1} == "2" && "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
elif [[ ${PYVERSION:0:1} == "2" && "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -O miniconda.sh;
elif [[ ${PYVERSION:0:1} == "3" && "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
elif [[ ${PYVERSION:0:1} == "3" && "$TRAVIS_OS_NAME" == "osx" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
else
exit 1;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- travis_wait $TRAVIS_BUILD_DIR/quickstart/conda-quickstart --pyversion $PYVERSION --name distarray-env --yes
- source activate distarray-env
- pip install codecov pelican
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then # test parallel hdf5
sudo apt-get install libhdf5-mpich2-7 libhdf5-mpich2-dev; # from Nick Andrik's PPA
CC=mpicc pip install git+https://github.com/h5py/[email protected] --install-option="--mpi";
fi
install:
- python setup.py install # build DistArray
- (cd $TRAVIS_BUILD_DIR/docs/sphinx && make html) # build docs
- (cd $TRAVIS_BUILD_DIR/docs/www && make html) # build website
before_script:
- python -c "import numpy; print('Numpy version', numpy.__version__)"
- export DISPLAY=:99.0 # for plotting.py
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
sh -e /etc/init.d/xvfb start # for plotting.py
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
sudo Xvfb :99 -ac -screen 0 1024x768x8 & # for plotting.py
else
exit 1;
fi
- (cd $TRAVIS_BUILD_DIR && dacluster start -n$NENGINES)
- lsof | grep python | wc -l
script:
- (cd $TRAVIS_BUILD_DIR && make test_with_coverage)
after_script:
- lsof | grep python | wc -l
- (cd $TRAVIS_BUILD_DIR && dacluster stop)
after_success:
- if [[ $PYVERSION == "3.4" && "$TRAVIS_OS_NAME" == "linux" && $NENGINES -eq 9 ]] ; then
echo "coverage combine"; coverage combine;
echo "codecov"; codecov;
fi