forked from desihub/desisim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
117 lines (101 loc) · 3.68 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
110
111
112
113
114
115
116
117
#
# IMPORTANT. OS X support is so experimental that you have to specifically
# request to have it enabled, on a per-repository basis. See
# http://docs.travis-ci.com/user/multi-os/#Manual-intervention-required
#
# This file will still work, without OS X enabled, it just won't run those
# tests.
#
# We set the language to c because python isn't supported on the MacOS X nodes
# on Travis. However, the language ends up being irrelevant anyway, since we
# install Python ourselves using conda.
# language: 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 for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
apt:
packages:
- graphviz
- texlive-latex-extra
- dvipng
# python:
# - 2.6
# - 2.7
# - 3.3
# - 3.4
# This is just for "egg_info". All other builds are explicitly given in the matrix
env:
global:
# The following versions are the 'default' for tests, unless
# overidden underneath. They are defined here in order to save having
# to repeat them for all configurations.
- NUMPY_VERSION=1.9
- SCIPY_VERSION=0.14
- ASTROPY_VERSION=1.0.4
- SPHINX_VERSION=1.3
- DESIUTIL_VERSION=1.3.0
- SPECTER_VERSION=0.3
- DESISPEC_VERSION=0.3.1
- DESIMODEL_VERSION=trunk
# desimodel/trunk requires fitsio
- FITSIO_VERSION=0.9.7
- CONDA_INSTALL='conda install -c astropy-ci-extras --yes'
- PIP_INSTALL='pip install'
- OPTIONAL_DEPS=false
- MAIN_CMD='python setup.py'
matrix:
- PYTHON_VERSION=2.7 SETUP_CMD='egg_info'
matrix:
# Don't wait for allowed failures.
fast_finish: true
# OS X support is still experimental, so don't penalize failuures.
allow_failures:
- os: osx
include:
# Check for sphinx doc build warnings - we do this first because it
# runs for a long time
- os: linux
env: PYTHON_VERSION=2.7 SETUP_CMD='build_sphinx'
# OPTIONAL_DEPS needed because the plot_directive in sphinx needs them
# -w is an astropy extension
# Do a bdist_egg compile. This will catch things like syntax errors
# without needing to do a full python setup.py test
- os: linux
env: PYTHON_VERSION=2.7 SETUP_CMD='bdist_egg'
# Try all python versions with the latest numpy
- os: linux
env: PYTHON_VERSION=2.7 SETUP_CMD='test --coverage'
# - os: osx
# env: PYTHON_VERSION=2.7 SETUP_CMD='test'
# - python: 3.3
# env: SETUP_CMD='test --open-files'
# - python: 3.4
# env: SETUP_CMD='test --open-files'
# Now try do scipy on 2.7 and an appropriate 3.x build (with latest numpy)
# We also note the code coverage on Python 2.7.
# - python: 2.7
# env: SETUP_CMD='test --coverage' OPTIONAL_DEPS=true LC_CTYPE=C.ascii LC_ALL=C.ascii
# - python: 3.4
# env: SETUP_CMD='test' OPTIONAL_DEPS=true LC_CTYPE=C.ascii LC_ALL=C.ascii
# Try older numpy versions
# - python: 2.7
# env: NUMPY_VERSION=1.8 SETUP_CMD='test'
# - python: 2.7
# env: NUMPY_VERSION=1.7 SETUP_CMD='test'
# - python: 2.7
# env: NUMPY_VERSION=1.6 SETUP_CMD='test'
# Do a PEP8 test
# - python: 2.7
# env: MAIN_CMD='pep8 astropy --count' SETUP_CMD=''
install:
- source etc/travis_env_$TRAVIS_OS_NAME.sh
script:
- $MAIN_CMD $SETUP_CMD
after_success:
- if [[ $SETUP_CMD == 'test --coverage' ]]; then coveralls; fi