https://github.com/astropy/astropy
Tip revision: fa194c0e12306554db41d96e38b030f93a2f16a7 authored by Erik Tollerud on 23 December 2016, 05:32:04 UTC
Preparing release v1.2.2
Preparing release v1.2.2
Tip revision: fa194c0
.travis.yml
# We set the language to c because python isn't supported on the MacOS X nodes
# on Travis. However, the language ends up being irrelevant anyway, since we
# install Python ourselves using conda.
language: c
os:
- linux
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
# The apt packages below are needed for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
apt:
packages:
- graphviz
- texlive-latex-extra
- dvipng
- language-pack-de
env:
global:
# Set defaults to avoid repeating in most cases
- NUMPY_VERSION=stable
- MAIN_CMD='python setup.py'
- CONDA_DEPENDENCIES='Cython jinja2'
- CONDA_ALL_DEPENDENCIES='Cython jinja2 scipy h5py matplotlib pyyaml scikit-image pandas pytz beautifulsoup4 ipython mpmath'
- PIP_DEPENDENCIES=''
matrix:
- PYTHON_VERSION=2.7 SETUP_CMD='egg_info'
- PYTHON_VERSION=3.3 SETUP_CMD='egg_info'
- PYTHON_VERSION=3.4 SETUP_CMD='egg_info'
- PYTHON_VERSION=3.5 SETUP_CMD='egg_info'
matrix:
# Don't wait for allowed failures
fast_finish: true
include:
# Try MacOS X
- os: osx
env: PYTHON_VERSION=2.7 SETUP_CMD='test'
CONDA_DEPENDENCIES=$CONDA_ALL_DEPENDENCIES
PIP_DEPENDENCIES='jplephem'
# Check for sphinx doc build warnings - we do this first because it
# runs for a long time. The sphinx build also has some additional
# dependencies.
- os: linux
env: PYTHON_VERSION=2.7 SETUP_CMD='build_sphinx -w'
CONDA_DEPENDENCIES=$CONDA_ALL_DEPENDENCIES
PIP_DEPENDENCIES='sphinx-gallery>=0.1.3 pillow wcsaxes --no-deps jplephem'
# Try all python versions with the latest numpy, but without the
# optional dependencies
- os: linux
env: PYTHON_VERSION=2.7 SETUP_CMD='test --open-files'
- os: linux
env: PYTHON_VERSION=3.3 NUMPY_VERSION=1.8 SETUP_CMD='test --open-files'
- os: linux
env: PYTHON_VERSION=3.4 SETUP_CMD='test --open-files'
- os: linux
env: PYTHON_VERSION=3.5 SETUP_CMD='test --open-files'
# Now try with all optional dependencies on 2.7 and an appropriate 3.x
# build (with latest numpy). We also note the code coverage on Python
# 2.7.
- os: linux
env: PYTHON_VERSION=2.7 SETUP_CMD='test --coverage'
CONDA_DEPENDENCIES=$CONDA_ALL_DEPENDENCIES
PIP_DEPENDENCIES='cpp-coveralls objgraph jplephem'
LC_CTYPE=C.ascii LC_ALL=C
CFLAGS='-ftest-coverage -fprofile-arcs -fno-inline-functions -O0'
- os: linux
env: PYTHON_VERSION=3.4 SETUP_CMD='test'
CONDA_DEPENDENCIES=$CONDA_ALL_DEPENDENCIES
PIP_DEPENDENCIES='jplephem'
LC_CTYPE=C.ascii LC_ALL=C
# Try older numpy versions without optional dependencies
- os: linux
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.10 SETUP_CMD='test'
- os: linux
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.9 SETUP_CMD='test'
- os: linux
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.8 SETUP_CMD='test'
- os: linux
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.7 SETUP_CMD='test'
# Try developer version of Numpy without optional dependencies
- os: linux
env: PYTHON_VERSION=2.7 NUMPY_VERSION=dev SETUP_CMD='test'
# Try pre-release version of Numpy without optional dependencies
- os: linux
env: PYTHON_VERSION=2.7 NUMPY_VERSION=prerelease SETUP_CMD='test'
# Do a PEP8 test
- os: linux
env: PYTHON_VERSION=2.7 MAIN_CMD='pep8 astropy --count' SETUP_CMD=''
allow_failures:
- env: PYTHON_VERSION=2.7 NUMPY_VERSION=dev SETUP_CMD='test'
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda_$TRAVIS_OS_NAME.sh
script:
- $MAIN_CMD $SETUP_CMD
after_success:
- if [[ $SETUP_CMD == 'test --coverage' ]]; then
cpp-coveralls -E ".*convolution.*" -E ".*_erfa.*" -E ".*\.l" -E ".*\.y" -E ".*flexed.*" -E ".*cextern.*" -E ".*_np_utils.*" -E ".*cparser.*" -E ".*cython_impl.*" --dump c-coveralls.json;
coveralls --merge=c-coveralls.json --rcfile='astropy/tests/coveragerc';
fi