forked from spacetelescope/notebooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (25 loc) · 1.09 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
language: python
env:
global:
- CONDA_CHANNELS='astropy-ci-extras astropy http://ssb.stsci.edu/astroconda'
- CONDA_DEPENDENCIES="astropy scipy astroquery matplotlib jupyter pandas drizzlepac crds ccdproc acstools photutils regions pyregion"
- PYTHON_VERSION=3.6
jobs:
include:
- name: run/convert notebooks
script: python convert.py
- name: check notebooks
script: python -m "nbpages.check_nbs" --commit-range="${TRAVIS_COMMIT_RANGE/.../..}" # see https://github.com/travis-ci/travis-ci/issues/4596 for why this bit in TRAVIS_COMMIT_RANGE is necessary
- stage: deploy
if: type != "pull_request" AND branch = "master"
script: python convert.py
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
keep-history: true
install:
- git clone git://github.com/astropy/ci-helpers.git
- source ci-helpers/travis/setup_conda.sh
- pip install git+https://github.com/eteq/nbpages.git#egg=nbpages
- pip install --pre astroquery