-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
executable file
·45 lines (39 loc) · 1.08 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
sudo: false
language: python
python:
# - 3.5
- 3.6
cache: apt
addons:
apt:
packages:
- gfortran
env:
global:
# List package dependencies for conda
- CONDA_DEPS="cython numpy scipy h5py sphinx sphinx_rtd_theme ipython nbsphinx tqdm astropy configobj matplotlib numpydoc mpich mpi4py pytest-cov zarr gfortran_linux-64 gcc_linux-64"
# package name for test invocation
- PACKAGENAME="hazel"
before_install:
- export MINICONDA=$HOME/miniconda
- export PATH="$MINICONDA/bin:$PATH"
- hash -r
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -f -p $MINICONDA
- conda config --set always_yes yes
- conda update conda
- conda info -a
- conda create -n testenv python=$TRAVIS_PYTHON_VERSION
- source activate testenv
- conda install -c conda-forge $CONDA_DEPS
- source deactivate
- source activate testenv
- pip install coveralls
install:
- python setup.py develop
script:
- py.test -v --cov hazel
after_success:
- coveralls
# - cd docs
# - bash ./deploy_docs.sh