forked from spacetelescope/imexam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
110 lines (81 loc) · 3.04 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
103
104
105
106
107
108
109
language: python
os:
- linux
python:
- 2.7
- 3.3
- 3.4
env:
global:
# SET DEFAULTS TO AVOID REPEATING IN MOST CASES
- SETUPTOOLS_VERSION=stable
- NUMPY_VERSION=1.9
- ASTROPY_VERSION=stable
- CONDA_INSTALL='conda install -c astropy-ci-extras --yes'
- PIP_INSTALL='pip install'
- INSTALL_OPTIONAL=true
- SETUP_CMD='test'
matrix:
include:
#CHECK SPHINX DOC WARNINGS
- python: 2.7
env: SETUP_CMD='build_sphinx -w'
- python: 3.4
env: SETUP_CMD='build_sphinx -w'
#CHECK ASTROPY
- python: 2.7
env: ASTROPY_VERSION=development SETUP_CMD='build_sphinx -w'
- python: 3.3
env: ASTROPY_VERSION=development SETUP_CMD='build_sphinx -w's
#CHECK NUMPY
- python: 2.7
- python: 3.3
- python: 3.4
- python: 2.7
env: NUMPY_VERSION=1.8
- python: 2.7
env: NUMPY_VERSION=1.7
- python: 2.7
env: NUMPY_VERSION=1.6
#CHECK WITHOUT OPTIONAL DEPENDENCIES
- python: 2.7
env: INSTALL_OPTIONAL=false
- python: 3.4
env: INSTALL_OPTIONAL=false
before_install:
# USE UTF8 ENCODING. SHOULD BE DEFAULT, BUT THIS IS INSURANCE AGAINST
# FUTURE CHANGES
- export PYTHONIOENCODING=UTF8
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda/bin:$PATH
- conda update --yes conda
#UPDATE APT-GET LISTINGS
- sudo apt-get update
#DOCUMENTAITON DEPENDENCIES
- if [[ $SETUP+CMD == build_sphinx* ]]; then sudo apt-get install graphviz texlive-latex-extra python-matplotlib dvipng; fi
#CHECK INTERACTIVE MATPLOTLIB BACKENDS
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- conda create -c astropy-ci-extras --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
# CORE DEPENDENCIES
- $CONDA_INSTALL -n test numpy=$NUMPY_VERSION pytest pip Cython jinja2
- $PIP_INSTALL pytest-xdist
- $PIP_INSTALL astropy_helpers
# ASTROPY
- $PIP_INSTALL git+http://github.com/astropy/astropy.git#egg=astropy
- $CONDA_INSTALL -n test numpy=$NUMPY_VERSION astropy
# OPTIONAL DEPENDENCIES
# Here you can add any dependencies your package may have. You can use
# conda for packages available through conda, or pip for any other
# packages. You should leave the `numpy=$NUMPY_VERSION` in the `conda`
# install since this ensures Numpy does not get automatically upgraded.
- $CONDA_INSTALL -n test numpy=$NUMPY_VERSION scipy matplotlib
# DOCUMENTATION DEPENDENCIES
# build_sphinx needs sphinx and matplotlib (for plot_directive).
- if [[ $SETUP_CMD == build_sphinx* ]]; then $CONDA_INSTALL -n test numpy=$NUMPY_VERSION Sphinx matplotlib; fi
script:
- python setup.py install