forked from ehsteve/sunpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
95 lines (77 loc) · 3.52 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
# We use C because conda manages our Python version
language: c
# 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
# Configure the build environment. Global varibles are defined for all configurations.
env:
global:
- PREVIOUS_NUMPY=1.10.4
- PYTHON_VERSION=2.7
- TEST_MODE='offline'
- NUMPY_VERSION='stable'
- ASTROPY_VERSION='stable'
- MAIN_CMD='python setup.py'
- CONDA_CHANNELS='astropy astropy-ci-extras conda-forge'
- CONDA_DEPENDENCIES='glymur openjpeg Cython jinja2 scipy matplotlib requests beautifulsoup4 sqlalchemy scikit-image pytest wcsaxes pyyaml pandas nomkl pytest-cov coverage hypothesis'
- PIP_DEPENDENCIES='suds-jurko sphinx-gallery'
matrix:
- PYTHON_VERSION=2.7 SETUP_CMD='egg_info'
- PYTHON_VERSION=3.4 SETUP_CMD='egg_info'
- PYTHON_VERSION=3.5 SETUP_CMD='egg_info'
- PYTHON_VERSION=2.7 SETUP_CMD='test'
- PYTHON_VERSION=3.4 SETUP_CMD='test'
- PYTHON_VERSION=3.5 SETUP_CMD='test'
matrix:
include:
- os: osx
env: PYTHON_VERSION=2.7 SETUP_CMD='test'
- os: linux
env: JOB="Astropy Dev" PYTHON_VERSION=3.5 SETUP_CMD='test' ASTROPY_VERSION='development'
- os: linux
env: JOB="Numpy Prev" PYTHON_VERSION=2.7 SETUP_CMD='test' NUMPY_VERSION=$PREVIOUS_NUMPY
- os: linux
env: JOB="Documentation" PYTHON_VERSION=2.7 SETUP_CMD='build_sphinx -w'
- os: linux
env: JOB="Figures" PYTHON_VERSION=2.7 SETUP_CMD='test --figure' CONDA_DEPENDENCIES=''
- os: linux
env: JOB="Online" PYTHON_VERSION=3.5 SETUP_CMD='test --online --coverage'
- os: linux
env: JOB="Doctest" PYTHON_VERSION=2.7 SETUP_CMD='build_sphinx -b doctest'
- os: linux
env: JOB="Numpy Dev" PYTHON_VERSION=3.5 SETUP_CMD='test'
ASTROPY_VERSION='stable' NUMPY_VERSION='dev'
# allow_failures has to repeat the environment from the matrix above to mark it as such
allow_failures:
- env: JOB="Doctest" PYTHON_VERSION=2.7 SETUP_CMD='build_sphinx -b doctest'
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.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 == *sphinx* ]]; then python -c "import sunpy.data; sunpy.data.download_sample_data()"; fi
- if [[ $SETUP_CMD == *figure* ]]; then wget https://raw.githubusercontent.com/sunpy/sunpy-figure-tests/master/conda_env.yml; conda env create --file conda_env.yml; source activate sunpy-figure-tests; 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