forked from sunpy/sunpy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
109 lines (96 loc) · 4.01 KB
/
Copy path.travis.yml
File metadata and controls
109 lines (96 loc) · 4.01 KB
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
103
104
105
106
107
108
109
# We use C because conda manages our Python vesion
# and running on OS/X dosen't work with Python.
language: c
os:
- linux
- osx
# 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
# These are currently not used, but we want to cache the packages dir
# to reduce the number of packages to download.
# cache:
# directories:
# - $HOME/miniconda/pkgs
# - $HOME/miniconda3/pkgs
# Configure the build environment. Global varibles are defined for all configurations.
env:
global:
# Modify these to represent the newest versions
- LATEST_NUMPY=1.10.2
- LATEST_PANDAS=0.17.1
- MATPLOTLIB_VERSION=">=1.5.1"
# Fixed global vars
- PYTHON_VERSION=2.7
- TEST_MODE='offline'
- NUMPY_VERSION="=$LATEST_NUMPY"
- PANDAS_VERSION="=$LATEST_PANDAS"
matrix:
- PYTHON_VERSION=2.7
# - PYTHON_VERSION=3.3
# - PYTHON_VERSION=3.4
# - PYTHON_VERSION=3.5
matrix:
include:
- os: linux
env: PANDAS_VERSION="=0.16.2"
- os: linux
env: TEST_MODE='figure' MATPLOTLIB_VERSION="=1.5.1"
- os: linux
env: TEST_MODE='astropy-dev'
- os: linux
env: TEST_MODE='sphinx'
- os: linux
env: TEST_MODE='online'
- os: linux
env: TEST_MODE='doctest'
- os: linux
env: PYTHON_VERSION=3.4 TEST_MODE='python3'
# If the online build fails, we don't want it to report the whole build broken.
allow_failures:
- env: TEST_MODE='online'
- env: TEST_MODE='doctest'
# Install miniconda
before_install:
- source continuous-integration/travis/install_$TRAVIS_OS_NAME.sh
install:
# Add a conda env and set up extra binstar channels
- conda create --yes -n test python=$PYTHON_VERSION
- conda config --add channels sunpy --add channels astropy --add channels astropy-ci-extras --add channels https://conda.binstar.org/sunpy/channel/citesting
- source activate test
# Install default dependencies
- conda install --yes pip
- conda install -q --yes numpy$NUMPY_VERSION pandas$PANDAS_VERSION scipy matplotlib$MATPLOTLIB_VERSION requests beautiful-soup sqlalchemy scikit-image pytest jinja2 cython wcsaxes
- pip install pytest-cov coverage coveralls
# Install sunpy conda packages
- conda install -q --yes numpy=$NUMPY_VERSION suds-jurko glymur
# Install the correct version of astropy
- if [[ $TEST_MODE != 'astropy-dev' ]]; then conda install -q --yes astropy>=0.4.0 numpy$NUMPY_VERSION; fi
- if [[ $TEST_MODE == 'astropy-dev' ]]; then pip install git+git://github.com/astropy/astropy.git; fi
# Install sphinx if needed
- if [[ $TEST_MODE == 'sphinx' || $TEST_MODE == 'doctest' ]]; then conda install -q --yes sphinx numpy$NUMPY_VERSION; fi
- if [[ $TEST_MODE == 'sphinx' || $TEST_MODE == 'doctest' ]]; then python -c "import sunpy.data; sunpy.data.download_sample_data()"; fi
script:
- if [[ $TEST_MODE == 'offline' || $TEST_MODE == 'astropy-dev' ]]; then python setup.py test; fi
- if [[ $TEST_MODE == 'figure' ]]; then python setup.py test --figure; fi
- if [[ $TEST_MODE == 'sphinx' ]]; then python setup.py build_sphinx -w; fi
- if [[ $TEST_MODE == 'online' ]]; then python setup.py test --online --coverage --cov-report=html; fi
#- if [[ $TEST_MODE == 'skip' ]]; then coveralls --rcfile='./sunpy/tests/coveragerc'; fi
- if [[ $TEST_MODE == 'doctest' ]]; then python setup.py build_sphinx -b doctest; fi
- if [[ $TEST_MODE == 'python3' ]]; then continuous-integration/python3.sh; fi
# Notify the IRC channel of build status
notifications:
irc: "chat.freenode.net#SunPy"
webhooks:
urls:
- https://webhooks.gitter.im/e/d1bf84e1bc1293e4dbc5