forked from spacetelescope/jwst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (42 loc) · 1.6 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
language: c
os:
- linux
- osx
sudo: false
env:
# CONDA_JWST_DEPENDENCIES is used because CONDA_DEPENDENCIES is not truly global.
global:
- MAIN_CMD='python setup.py'
- CONDA_CHANNELS='http://ssb.stsci.edu/conda-dev'
- CONDA_DEPENDENCIES='pytest jwst sphinx=1.3.5'
- CONDA_JWST_DEPENDENCIES='pytest stsci-jwst sphinx=1.3.5'
- PIP_DEPENDENCIES=''
- CRDS_SERVER_URL='https://jwst-crds.stsci.edu'
- CRDS_PATH='/tmp/crds_cache'
matrix:
- PYTHON_VERSION=2.7 SETUP_CMD='install'
- PYTHON_VERSION=2.7 SETUP_CMD='test'
- PYTHON_VERSION=3.5 SETUP_CMD='install'
- PYTHON_VERSION=3.5 SETUP_CMD='test'
matrix:
include:
# PEP8 check with pycodestyle (only once, i.e. "os: linux")
- os: linux
env: PYTHON_VERSION=3.5 MAIN_CMD='pycodestyle --count'
SETUP_CMD='jwst' TEST_CMD='pycodestyle --version'
CONDA_DEPENDENCIES=$CONDA_JWST_DEPENDENCIES
# build sphinx documentation
- os: linux
env: PYTHON_VERSION=3.5 MAIN_CMD='docs/mkdocs.sh'
SETUP_CMD=''
CONDA_DEPENDENCIES=$CONDA_JWST_DEPENDENCIES
allow_failures:
# PEP8 will fail for numerous reasons. Ignore it.
- env: PYTHON_VERSION=3.5 MAIN_CMD='pycodestyle --count'
SETUP_CMD='jwst' TEST_CMD='pycodestyle --version'
CONDA_DEPENDENCIES=$CONDA_JWST_DEPENDENCIES
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
script:
- $MAIN_CMD $SETUP_CMD