forked from sunpy/sunpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
102 lines (83 loc) · 3.26 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
98
99
100
101
102
language: python
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
# The apt packages below are needed but can no longer be installed with
# sudo apt-get.
addons:
apt:
packages:
- libatlas-dev
- liblapack-dev
- gfortran
- graphviz
- texlive-latex-extra
- dvipng
python:
- 2.7
- 3.4
- 3.5
- 3.6
# Configure the build environment. Global varibles are defined for all configurations.
env:
global:
- COLUMNS=240
- PREVIOUS_NUMPY=1.11.3
- NUMPY_VERSION='stable'
- ASTROPY_VERSION='stable'
- MAIN_CMD='python setup.py'
- SETUP_CMD='test'
- CONDA_CHANNELS='astropy astropy-ci-extras conda-forge'
- CONDA_DEPENDENCIES='openjpeg Cython jinja2 scipy matplotlib mock requests beautifulsoup4 sqlalchemy scikit-image pytest-mock pyyaml pandas nomkl pytest-cov coverage hypothesis glymur'
- PIP_DEPENDENCIES='suds-jurko sphinx-gallery pytest-sugar'
- EVENT_TYPE='pull_request push'
matrix:
- SETUP_CMD='egg_info'
matrix:
include:
# We order the jobs, so the longest running tests are in the top
# four positions of the matrix
- os: osx
language: generic
env: PYTHON_VERSION=3.6
- python: 3.6
env: SETUP_CMD='test --online --coverage -V'
EVENT_TYPE='push pull_request cron'
- python: 3.6
env: NUMPY_VERSION='dev' ASTROPY_VERSION='dev'
EVENT_TYPE='push pull_request cron'
- python: 2.7
env: SETUP_CMD='test'
# Previous numpy is tested on an older python version
- python: 3.5
env: NUMPY_VERSION=$PREVIOUS_NUMPY
- python: 3.6
env: SETUP_CMD='build_docs -w'
EVENT_TYPE='push pull_request cron'
SPHINX_VERSION='>1.6'
# Figure test runs use an env stored in the repo so don't have conda
# requirements
- python: 2.7
env: SETUP_CMD='test --figure' CONDA_DEPENDENCIES=''
- python: 3.5
env: SETUP_CMD='test --figure' CONDA_DEPENDENCIES=''
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
- source continuous-integration/travis/openjpeg.sh # so glymur knows where to look
before_script:
# Download the sample data for the build of the documentation.
- if [[ $SETUP_CMD == *build_docs* ]]; then python -c "import sunpy.data; sunpy.data.download_sample_data()"; fi
- if [[ $SETUP_CMD == *figure* ]]; then conda env create --file sunpy/tests/figure_tests_env_$PYTHON_VERSION.yml; source activate sunpy-figure-tests-$PYTHON_VERSION; fi
script:
- $MAIN_CMD $SETUP_CMD
after_success:
- if [[ $SETUP_CMD == *coverage* ]]; then coveralls --rcfile='./sunpy/tests/coveragerc'; fi
# Notify the IRC channel of build status
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/d1bf84e1bc1293e4dbc5
- "https://scalar.vector.im/api/neb/services/hooks/dHJhdmlzLWNpLyU0MENhZGFpciUzQW1hdHJpeC5vcmcvJTIxTWVSZEZwRW9uTG9Dd2hvSGVUJTNBbWF0cml4Lm9yZw"
on_success: change # always|never|change
on_failure: always
on_start: never