forked from astropy/ccdproc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
81 lines (66 loc) · 2.3 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
language: c
# 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:
# The following versions are the 'default' for tests, unless
# overridden underneath. They are defined here in order to save having
# to repeat them for all configurations.
- NUMPY_VERSION=stable
- ASTROPY_VERSION=stable
- MAIN_CMD='pytest'
- SETUP_CMD='ccdproc'
- CONDA_CHANNELS='astropy'
- ASTROPY_USE_SYSTEM_PYTEST=1
matrix:
- SETUP_CMD='egg_info'
matrix:
include:
- env: PYTHON_VERSION=3.7
SETUP_CMD='--cov ccdproc'
# Do a windows run
- os: windows
env: PYTHON_VERSION=3.7
ASTROPY_VERSION=stable
NUMPY_VERSION=stable
# Try Astropy development versions. This requires them to be
# compiled during setup which takes some time.
# Building against numpy dev was removed because it was causing
# failures due to numpy dev/astropy dev conflicts unresolvable
# in ccdproc.
- env: PYTHON_VERSION=3.7
ASTROPY_VERSION=development
NUMPY_VERSION=stable
# Check for sphinx doc build warnings
- env: PYTHON_VERSION=3.7
MAIN_CMD='tox -e'
SETUP_CMD='build_docs'
- env: NUMPY_VERSION=1.16
PYTHON_VERSION=3.6
# Try numpy pre-release version. This runs only when a pre-release
# is available on pypi.
- env: PYTHON_VERSION=3.7
NUMPY_VERSION=prerelease
# pycodestyle test, see setup.cfg for tested pep8 warnings/errors
- env: PYTHON_VERSION=3.7
MAIN_CMD='pycodestyle ccdproc --count --show-source --show-pep8'
SETUP_CMD=''
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
script:
- pip install tox tox-pypi-filter --upgrade
- pip install -e .
- $MAIN_CMD $SETUP_CMD
after_success:
# Upload coverage results.
- pip install codecov
- codecov