/
.travis.yml
41 lines (34 loc) · 1.22 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
language: python
sudo: false
env:
global:
- ASTROPY_VERSION=stable
- CONDA_INSTALL='conda install -c astropy --yes'
- PIP_INSTALL='pip install'
- MINICONDA_HOME='/home/travis/miniconda'
matrix:
include:
- python: 3.7
before_install:
# Use utf8 encoding. Should be default, but this is insurance against
# future changes
- export PYTHONIOENCODING=UTF8
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $MINICONDA_HOME
- export PATH=$MINICONDA_HOME/bin:$PATH
- conda update --yes conda
# DOCUMENTATION DEPENDENCIES
- if [[ $SETUP_CMD == build_sphinx* ]]; then sudo apt-get install graphviz texlive-latex-extra dvipng; fi
install:
# CONDA
- conda create --yes -n test -c astropy-ci-extras -c astropy python=$TRAVIS_PYTHON_VERSION
- source activate test
- $CONDA_INSTALL numpy pytest astropy ccdproc scipy
- pip install coverage codecov $EXTRA_INSTALLS
# need to install scripts because one test ends up invoking a subprocess
- python setup.py install_scripts
script:
coverage run --source=msumastro setup.py test
after_success:
- codecov