forked from bccp/nbodykit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
61 lines (48 loc) · 1.52 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
language: python
python:
- 2.7
- 3.4
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- gfortran-4.8
- swig
env:
- NUMPY_VERSION=1.11
cache:
directories:
- $HOME/.cache/pip
- $HOME/.conda
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- conda update --yes conda
# set the c++ and fortran compilers
- export CXX=g++-4.8
- export F90=gfortran-4.8
install:
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
# base python setup
- conda install --yes numpy=$NUMPY_VERSION nose cython mpi4py h5py pandas scipy pytables pyyaml astropy numba dask
- pip install pytest pytest-cov pytest-pipeline coveralls
# test optional HOD data sources
- pip install halotools
# test optional Zeldovich data source
- conda install --yes "swig>=3.0"
- pip install --no-cache-dir classylss # ignore cache due to binaries
# nbodykit and requirements
- pip install --pre pfft-python kdcount mpsort pmesh sharedmem bigfile --no-deps
- pip install --pre -r requirements.txt -e . # develop mode to track coverage of subproccess
script:
- py.test nbodykit --cov=nbodykit --cov-report term-missing
after_success:
- coveralls
#notifications:
# email: false