forked from spacetelescope/jwst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
96 lines (82 loc) · 3.18 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
language: c
os:
- linux
sudo: false
# The apt packages below are needed for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
apt:
packages:
- texlive-latex-extra
- dvipng
env:
global:
- CONDA_CHANNELS='http://ssb.stsci.edu/astroconda-dev'
- CONDA_DEPENDENCIES="asdf
astropy
crds
dask
drizzle
fitsblender
flake8
gwcs
jsonschema
jplephem
matplotlib
namedlist
numpy
photutils
scipy
six
spherical-geometry
stsci.image
stsci.imagestats
stsci.stimage
stsci.tools
verhawk"
- CONDA_DOCS_DEPENDENCIES='sphinx graphviz'
- CRDS_SERVER_URL='https://jwst-crds.stsci.edu'
- CRDS_PATH='/tmp/crds_cache'
- MAIN_CMD='python setup.py'
- MC_URL=https://repo.continuum.io/miniconda
- PIP_DEPENDENCIES=''
- PYTHON_VERSION=3.6
matrix:
- SETUP_CMD='install'
- SETUP_CMD='test'
# These will no longer work unless we add an explicit dependency on asdf-1.3.1
#- PYTHON_VERSION=2.7 SETUP_CMD='install' ASTROPY_VERSION=stable
#- PYTHON_VERSION=2.7 SETUP_CMD='test' ASTROPY_VERSION=stable
matrix:
# Don't wait for allowed failures
fast_finish: true
include:
# PEP8 check with flake8 (only once, i.e. "os: linux")
- os: linux
env: MAIN_CMD='flake8 --count'
SETUP_CMD='jwst' TEST_CMD='flake8 --version'
# build sphinx documentation with warnings
- os: linux
env: SETUP_CMD='build_sphinx'
CONDA_DEPENDENCIES="$CONDA_DEPENDENCIES $CONDA_DOC_DEPENDENCIES"
PIP_DEPENDENCIES='sphinx_rtd_theme stsci_rtd_theme sphinx-automodapi'
allow_failures:
# PEP8 will fail for numerous reasons. Ignore it.
- env: MAIN_CMD='flake8 --count'
SETUP_CMD='jwst' TEST_CMD='flake8 --version'
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then MC_INST=Miniconda3-4.4.10-Linux-x86_64.sh; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then MC_INST=Miniconda3-4.4.10-MacOSX-x86_64.sh; fi
- curl -LO "$MC_URL/$MC_INST"
- bash $MC_INST -b -p $HOME/miniconda
- export PATH=$HOME/miniconda/bin:$PATH
- conda config --set always_yes yes --set changeps1 no
- conda config --set auto_update_conda false
- for channel in $CONDA_CHANNELS; do conda config --add channels "$channel"; done
- conda create -n test -q python=$PYTHON_VERSION $CONDA_DEPENDENCIES
- source activate test
- if [[ -n $PIP_DEPENDENCIES ]]; then pip install -q $PIP_DEPENDENCIES; fi
after_install:
- conda list astropy
script:
- $MAIN_CMD $SETUP_CMD