11
11
# Setting sudo to false opts in to Travis-CI container-based builds.
12
12
sudo : false
13
13
14
- # The apt packages below are needed for sphinx builds. A full list of packages
15
- # that can be included can be found here:
16
- #
17
- # https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
18
-
19
- addons :
20
- apt :
21
- packages :
22
- - graphviz
23
- - texlive-latex-extra
24
- - dvipng
25
-
26
14
env :
27
15
global :
28
16
# The following versions are the 'default' for tests, unless
31
19
- PYTHON_VERSION=3.7
32
20
- NUMPY_VERSION=stable
33
21
- ASTROPY_VERSION=stable
34
- - SETUP_CMD='test'
35
22
- PIP_DEPENDENCIES=''
36
- - MAIN_CMD='python setup.py'
23
+ - INSTALL_CMD='pip install -e .'
24
+ - MAIN_CMD='pytest --pyargs ginga doc'
37
25
# *** TODO: We should test the various GUI toolkits that ginga supports
38
- # on travis-ci ... probably one build for Python 2 / 3 and each toolkit
26
+ # on travis-ci ...
39
27
# https://ginga.readthedocs.io/en/latest/install.html#dependences
40
28
- CONDA_DEPENDENCIES='pyqt'
41
- # Conda channels now need to be explicitly listed, ci-helpers won't
42
- # add astropy and astropy-ci-extras by default.
43
- - CONDA_CHANNELS='astropy-ci-extras astropy'
44
-
45
- matrix :
46
- # Make sure that egg_info works without dependencies
47
- - SETUP_CMD='egg_info'
48
- # Try all python versions with the latest Numpy
49
- - SETUP_CMD='test'
50
29
51
30
matrix :
52
31
@@ -55,13 +34,10 @@ matrix:
55
34
56
35
include :
57
36
58
- # Do a coverage test in Python 3.
59
- # *** TODO: `python setup.py test --coverage` doesn't work yet for `ginga` ... skipping for now
60
- # - os: linux
61
- # env: SETUP_CMD='test --coverage'
37
+ # Try with the latest Numpy
38
+ - os : linux
62
39
63
40
# Try older Numpy versions
64
- # TODO: Change to ASTROPY_VERSION=lts when PY2 job starts to fail.
65
41
- os : linux
66
42
env : PYTHON_VERSION=3.6 NUMPY_VERSION=1.13
67
43
- os : linux
@@ -73,11 +49,16 @@ matrix:
73
49
74
50
# Try on Windows
75
51
- os : windows
76
- env : SETUP_CMD='test'
77
52
78
- # Do a PEP8 test with flake8 (white-list in setup.cfg)
53
+ # Do a PEP 8 test with flake8 (white-list in setup.cfg)
54
+ - os : linux
55
+ env : MAIN_CMD='flake8 ginga --count' INSTALL_CMD=''
56
+
57
+ # Do a PEP 517 test with twine check
79
58
- os : linux
80
- env : MAIN_CMD='flake8 ginga --count' SETUP_CMD=''
59
+ env : CONDA_DEPENDENCIES='' PIP_DEPENDENCIES='pep517 twine'
60
+ INSTALL_CMD='python -m pep517.build --source .'
61
+ MAIN_CMD='twine check dist/*'
81
62
82
63
before_install :
83
64
@@ -91,7 +72,7 @@ install:
91
72
# We now use the ci-helpers package to set up our testing environment.
92
73
# This is done by using Miniconda and then using conda and pip to install
93
74
# dependencies. Which dependencies are installed using conda and pip is
94
- # determined by the CONDA_DEPDENDENCIES and PIP_DEPENDENCIES variables,
75
+ # determined by the CONDA_DEPENDENCIES and PIP_DEPENDENCIES variables,
95
76
# which should be space-delimited lists of package names. See the README
96
77
# in https://github.com/astropy/ci-helpers for information about the full
97
78
# list of environment variables that can be used to customize your
@@ -112,10 +93,6 @@ install:
112
93
# other dependencies.
113
94
114
95
script :
115
- - $MAIN_CMD $SETUP_CMD
96
+ - $INSTALL_CMD
97
+ - $MAIN_CMD
116
98
117
- after_success :
118
- # If coveralls.io is set up for this package, uncomment the line
119
- # below and replace "packagename" with the name of your package.
120
- # The coveragerc file may be customized as needed for your package.
121
- # - if [[ $SETUP_CMD == 'test --coverage' ]]; then coveralls --rcfile='ginga/tests/coveragerc'; fi
0 commit comments