Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add travis stages and other cleanups #515

Merged
merged 3 commits into from
Sep 23, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 21 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,13 @@ language: c
os:
- linux

# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
stage: Comprehensive tests

# The apt packages below are needed for sphinx builds. A full list of packages
# that can be included can be found here:
#
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise

addons:
apt:
packages:
- graphviz
- texlive-latex-extra
- dvipng

env:
global:
Expand All @@ -35,24 +28,33 @@ env:
- PIP_DEPENDENCIES='gwcs scipy matplotlib'
- EVENT_TYPE='pull_request push'
- CONDA_DEPENDENCIES='pytest-remotedata'
- CONDA_CHANNELS='astropy-ci-extras'
- GWCS_DEV="git+https://github.com/spacetelescope/gwcs.git#egg=gwcs"
- ASDF_DEV="git+https://github.com/spacetelescope/asdf.git#egg=asdf"

# If there are matplotlib or other GUI tests, uncomment the following
# line to use the X virtual framebuffer.
# - SETUP_XVFB=True

matrix:
# Make sure that egg_info works without dependencies
- PYTHON_VERSION=3.7 SETUP_CMD='egg_info'
stages:
# Do the style check and a single test job, don't proceed if it fails
- name: Initial tests
# Test docs, astropy dev, and without optional dependencies
- name: Comprehensive tests
# These will only run when cron is opted in
- name: Cron tests
if: type = cron

matrix:

# Don't wait for allowed failures
fast_finish: true

include:
# Make sure that egg_info works without dependencies
- stage: Initial tests
env: PYTHON_VERSION=3.7 SETUP_CMD='egg_info'

- stage: Initial tests
os: linux
env: PYTHON_VERSION=3.7

# Try MacOS X
- os: osx
env: SETUP_CMD='test --remote-data=any'
Expand All @@ -76,28 +78,22 @@ matrix:
env: PYTHON_VERSION=3.5 NUMPY_VERSION=1.15
- os: linux
env: NUMPY_VERSION=1.14
- os: linux
env: PYTHON_VERSION=3.7

# Try numpy pre-release
- os: linux
env: NUMPY_VERSION=prerelease
EVENT_TYPE='pull_request push cron'

# Do a PEP8 test with pycodestyle
- os: linux
- stage: Initial tests
os: linux
env: MAIN_CMD='pycodestyle specutils --count'
SETUP_CMD=''

# Try development version of Astropy
- os: linux
env: ASTROPY_VERSION=dev
env: ASTROPY_VERSION=dev EVENT_TYPE='pull_request push cron'
PIP_DEPENDENCIES="$GWCS_DEV $ASDF_DEV scipy matplotlib"

allow_failures:
# Try development version of Astropy
- os: linux
env: ASTROPY_VERSION=dev
env: ASTROPY_VERSION=dev EVENT_TYPE='pull_request push cron'
PIP_DEPENDENCIES="$GWCS_DEV $ASDF_DEV scipy matplotlib"


Expand Down