/
.travis.yml
65 lines (53 loc) · 1.9 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
language: python
# The apt packages below are needed for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
apt:
packages:
- graphviz
- libgfortran3 # for casatools
- libxkbcommon-x11-0 # for glue
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.
- SETUP_XVFB=True
- ON_TRAVIS=True
- TOXENV=''
- TOXARGS=''
- TOXPOSARGS=''
matrix:
include:
- language: c
os: osx
env: PYTHON_VERSION=3.7 TOXENV='py37-test-all'
name: "Python 3.7 with all dependencies (except CASA) on MacOS X"
- language: c
os: windows
env: PYTHON_VERSION=3.7 TOXENV='py37-test-all'
name: "Python 3.7 with all dependencies (except CASA) on Windows"
before_install:
# We need a full clone to make sure setuptools_scm
# works properly
- git fetch --unshallow .
- git fetch --depth=1000000
- if [[ $TRAVIS_OS_NAME == linux ]]; then
export DISPLAY=:99.0;
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset;
fi
install:
# language: python is only available for Linux, so for other platforms
# we need to use ci-helpers to set up Python.
- if [[ $TRAVIS_OS_NAME == osx || $TRAVIS_OS_NAME == windows ]]; then
git clone git://github.com/astropy/ci-helpers.git;
source ci-helpers/travis/setup_conda.sh;
fi
script:
- pip install tox
- tox $TOXARGS -- $TOXPOSARGS
after_success:
- pip install coveralls coverage
- coverage combine .tmp/*/.coverage
- coverage report
- coveralls