forked from spacetelescope/jwst_reffiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (54 loc) · 1.85 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
# We set the language to c because python isn't supported on the MacOS X nodes
# on Travis. However, the language ends up being irrelevant anyway, since we
# install Python ourselves using conda.
language: c
compiler: gcc
os:
- linux
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
# The apt packages below are needed for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
apt:
packages:
- graphviz
- texlive-latex-extra
- dvipng
env:
global:
- MAIN_CMD='python setup.py'
- CONDA_CHANNELS='http://ssb.stsci.edu/astroconda-dev'
- CONDA_DEPENDENCIES='pytest=3.6 sphinx jwst'
- PIP_DEPENDENCIES=''
- PYTHON_VERSION=3.6
- NUMPY_VERSION=stable
- ASTROPY_VERSION=stable
- EVENT_TYPE='push pull_request'
matrix:
- SETUP_CMD='install'
- SETUP_CMD='test'
matrix:
# Don't wait for allowed failures
fast_finish: true
include:
# build sphinx documentation with warnings
- os: linux
env: SETUP_CMD='build_sphinx'
CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES
PIP_DEPENDENCIES='sphinx_rtd_theme stsci_rtd_theme sphinx-automodapi nbsphinx'
# PEP8 check with flake8 (only once, i.e. "os: linux")
- os: linux
env: MAIN_CMD='flake8 --count'
SETUP_CMD='jwst_reffiles'
CONDA_DEPENDENCIES=$CONDA_DEPENDENCIES
allow_failures:
# PEP8 will fail for numerous reasons. Ignore it.
- env: MAIN_CMD='flake8 --count'
SETUP_CMD='jwst_reffiles'
CONDA_DEPENDENCIES=$CONDA_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