Using travis build stages [skip appveyor]
@@ -18,6 +18,15 @@ addons:
- texlive-latex-extra
- dvipng
+stage: Initial tests
+
+stages:
+ - name: Initial tests
+ - name: Test docs, astropy dev, and without optional dependencies
+ - name: Tests with other Python/Numpy versions
+ - name: Cron tests
+ if: type = cron
+
env:
global:
# The following versions are the 'default' for tests, unless
@@ -66,6 +75,7 @@ matrix:
# Try MacOS X
- os: osx
env: SETUP_CMD='test' CONDA_CHANNELS='conda-forge astropy-ci-extras astropy'
+ EVENT_TYPE='cron'
- os: linux
env: SETUP_CMD='test --coverage'
@@ -73,6 +83,7 @@ matrix:
# Check for sphinx doc build warnings - we do this first because it
# may run for a long time
- os: linux
+ stage: Test docs, astropy dev, and without optional dependencies
env: SETUP_CMD='build_docs -w'
# Try all python versions and Numpy versions. Since we can assume that
@@ -80,40 +91,50 @@ matrix:
# versions of Python, we can vary Python and Numpy versions at the same
# time. We don't expect any of these to fail in master for cron jobs.
- os: linux
+ stage: Tests with other Python/Numpy versions
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.9
- os: linux
+ stage: Tests with other Python/Numpy versions
env: PYTHON_VERSION=3.4 NUMPY_VERSION=1.10
- os: linux
+ stage: Tests with other Python/Numpy versions
env: PYTHON_VERSION=3.5 NUMPY_VERSION=1.11
- os: linux
+ stage: Tests with other Python/Numpy versions
env: NUMPY_VERSION=1.12 ASTROPY_VERSION=1.3 PYTEST_VERSION='<3.2'
# Now try Astropy dev and LTS vesions with the latest Python.
# The dev version only need to be tested on PRs as there are pull
# and cron builds above already.
- os: linux
+ stage: Test docs, astropy dev, and without optional dependencies
env: ASTROPY_VERSION=development EVENT_TYPE='pull_request'
# Astropy stable and LTS currently the same, enable these back when 3.0 is out
# - os: linux
+ # stage: Test docs, astropy dev, and without optional dependencies
# env: PYTHON_VERSION=2.7 ASTROPY_VERSION=lts
# EVENT_TYPE='push pull_request' PYTEST_VERSION=2.7
## Need to test with python3.5 for now as py3.6 requires pytest3 (due
## to the usage of unittest) that is incompatible with LTS
# - os: linux
+ # stage: Test docs, astropy dev, and without optional dependencies
# env: PYTHON_VERSION=3.5 ASTROPY_VERSION=lts
# EVENT_TYPE='push pull_request' PYTEST_VERSION=2.7
# Try with optional dependencies disabled
- os: linux
+ stage: Test docs, astropy dev, and without optional dependencies
env: PYTHON_VERSION=2.7
CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring'
- os: linux
+ stage: Test docs, astropy dev, and without optional dependencies
env: CONDA_DEPENDENCIES='requests beautifulsoup4 html5lib keyring'
# Try numpy pre-release version, this runs only when a pre-release
# is available on pypi.
- os: linux
+ stage: Tests with other Python/Numpy versions
env: NUMPY_VERSION=prerelease DEBUG=True EVENT_TYPE='push pull_request cron'
# Do a PEP8 test with pycodestyle
