forked from matplotlib/pytest-mpl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
43 lines (34 loc) · 1.29 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
language: c
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
os:
- linux
- osx
env:
global:
- SETUP_XVFB=True
- CONDA_DEPENDENCIES="pytest matplotlib nose coverage"
- PIP_DEPENDENCIES="pytest-cov coveralls"
matrix:
- PYTHON_VERSION=3.4 MATPLOTLIB_VERSION=1.5
- PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=1.5
- PYTHON_VERSION=3.5 MATPLOTLIB_VERSION=1.5
- PYTHON_VERSION=2.7 MATPLOTLIB_VERSION=2.0
- PYTHON_VERSION=3.5 MATPLOTLIB_VERSION=2.0
- PYTHON_VERSION=3.6 MATPLOTLIB_VERSION=2.0
# The following build is meant to check that dependencies get set up correctly, but currently
# the image tests fail, which should be investigated.
# - PYTHON_VERSION=3.5 CONDA_DEPENDENCIES="coverage freetype libpng"
install:
# We use the ci-helpers package from the Astropy project to set up conda
# with any requested dependencies above.
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
# Need to use develop instead of install to make sure coverage works
- python setup.py develop
script:
- python -c 'import pytest_mpl.plugin'
- py.test --mpl --cov pytest_mpl tests
- python setup.py check --restructuredtext
after_success:
- coveralls