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
|
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:
- python: 3.7
env: TOXENV='py37-test'
name: "Python 3.7 with minimal dependencies"
- python: 3.7
env: TOXENV='py37-test-novis'
name: "Python 3.7 with all non-visualization dependencies (except CASA)"
- python: 3.6
env: TOXENV='py36-test-casa'
name: "Python 3.6 with minimal dependencies and CASA"
- python: 3.6
env: TOXENV='py36-test-casa-dev'
name: "Python 3.6, CASA, and dev versions of key dependencies"
- python: 3.8
env: TOXENV='py38-test-novis-dev'
name: "Python 3.8, all non-visualization dependencies, and dev versions of key dependencies"
- language: c
os: osx
env: PYTHON_VERSION=3.7 TOXENV='py37-test-novis'
name: "Python 3.7 with all non-visualization dependencies (except CASA) on MacOS X"
- language: c
os: windows
env: PYTHON_VERSION=3.7 TOXENV='py37-test-all-dev'
name: "Python 3.7, all dependencies, and dev versions of key dependencies on Windows"
- python: 3.8
env: TOXENV='build_docs'
name: "Documentation"
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
|