forked from spacetelescope/cubeviz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
97 lines (76 loc) · 2.94 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
97
# 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
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. A full list of packages
# that can be included can be found here:
#
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
env:
global:
# The following versions are the 'default' for tests, unless
# overidden underneath. They are defined here in order to save having
# to repeat them for all configurations.
- TOX_CMD='tox --'
- TOX_ARGS='--remote-data'
- SETUP_XVFB=True
# This is the Python version that will be used by the parent conda
# environment, but it will not be used in the test environments
# themselves.
- PYTHON_VERSION=3.6
matrix:
# Make sure that installation does not fail
- TOXENV='py37' TOX_CMD='tox --notest' TOX_ARGS=''
# Make sure README will display properly on pypi
- TOXENV='checkdocs'
# Run a test with stable dependencies
- TOXENV='py36-test'
- TOXENV='py37-test'
matrix:
# Don't wait for allowed failures
fast_finish: true
include:
# Do a coverage test
- env: TOXENV='coverage' TOX_ARGS=''
# Perform a sanity check of packaging using twine
- env: TOXENV='twine' TOX_ARGS=''
# Check for sphinx doc build warnings - we do this first because it
# may run for a long time
- env: TOXENV='docbuild' TOX_ARGS=''
# Do a code style check
- env: TOXENV='style' TOX_ARGS=''
# Try MacOS X and Windows
- os: osx
env: TOXENV='py37-test'
- os: windows
env: TOXENV='py37-test'
# Test against oldest compatible versions of core dependencies
- env: TOXENV='py36-legacy-test'
# Try building against Astropy dev
- env: TOXENV='py37-astrodev-test'
# Test against numpy dev
- env: TOXENV='py37-numpydev-test'
# Test against latest development version of Glue
- env: TOXENV='py37-gluedev-test'
allow_failures:
- env: TOXENV='style' TOX_ARGS=''
- env: TOXENV='py37-astrodev-test'
- env: TOXENV='py37-numpydev-test'
- env: TOXENV='py37-gluedev-test'
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
- conda install openssl
- pip install tox tox-conda>=0.2
script:
- conda info
- $TOX_CMD $TOX_ARGS
- if [[ $TRAVIS_OS_NAME != windows && $TOXENV == *-test ]]; then
JWST_DATA_TEST=1 $TOX_CMD cubeviz/tests/test_load_data.py $TOX_ARGS;
fi
- find cubeviz -name "*.ui" -exec grep "pointsize" {} \; >& font.log
- test ! -s font.log