-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
71 lines (54 loc) · 2.12 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
# https://travis-ci.org/kecnry/autofig
language: python
addons:
apt:
sources:
# add PPAs with more up-to-date toolchains
- ubuntu-toolchain-r-test
dist: trusty
env:
global:
# Set defaults to avoid repeating in most cases
- CONDA_DEPENDENCIES='matplotlib'
- PIP_DEPENDENCIES='nose'
- PYTHON_VERSION=2.7
- NUMPY_VERSION=1.10
- ASTROPY_VERSION=1.0
matrix:
# Don't wait for allowed failures
fast_finish: true
include:
# Python 2.7: lowest version, stable, dev
- os: linux
env: PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.4.3 NUMPY_VERSION=1.10 ASTROPY_VERSION=1.0
- os: linux
env: PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=2.2 NUMPY_VERSION=stable ASTROPY_VERSION=stable
# astropy/numpy/matplotlib dev don't support python < 3.5
# - os: linux
# env: PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=2.2 NUMPY_VERSION=dev ASTROPY_VERSION=stable'
# Python 3.6: lowest version, stable, dev
# note: NUMPY 1.10 is not supported with PYTHON 3.6, so we'll use stable instead
- os: linux
env: PYTHON_VERSION=3.6 MATPLOTLIB_VERSION=1.4.3 NUMPY_VERSION=stable ASTROPY_VERSION=1.0
- os: linux
env: PYTHON_VERSION=3.6 MATPLOTLIB_VERSION=2.2 NUMPY_VERSION=stable ASTROPY_VERSION=stable
- os: linux
env: PYTHON_VERSION=3.7 MATPLOTLIB_VERSION=dev NUMPY_VERSION=dev ASTROPY_VERSION=dev
allow_failures:
- env: PYTHON_VERSION=3.7 MATPLOTLIB_VERSION=dev NUMPY_VERSION=dev ASTROPY_VERSION=dev
before_install:
# Tricks to avoid matplotlib error about X11:
# 'no display name and no $DISPLAY environment variable'
# http://docs.travis-ci.com/user/gui-and-headless-browsers/#Starting-a-Web-Server
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
brew update;
fi;
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
- python setup.py build
- python setup.py install --user
script:
- nosetests -v -s -d -w tests/;