-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·39 lines (32 loc) · 1.02 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
language: python
python:
- 3.6
env:
- NUMPY_VERSION=1.15
cache:
directories:
- $HOME/.cache/pip
- $HOME/.conda
- $HOME/.astropy/cache/halotools
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda3-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
install:
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
- conda config --add channels astropy
- conda config --add channels bccp
- conda install --yes numpy=$NUMPY_VERSION
- echo "numpy $NUMPY_VERSION.*" >> $CONDA_PREFIX/conda-meta/pinned
- conda install --yes --file requirements.txt
- conda install coverage
script:
- pip install --upgrade scipy
- pip install --upgrade astropy
- coverage run -m pytest horizonground/
- pytest --runslow horizonground/tests/
after_success:
- bash <(curl -s https://codecov.io/bash)