forked from spacetelescope/da5-notebooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (25 loc) · 1.1 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/conda-dev'
- CONDA_DEPENDENCIES="astropy>=3.1 astroquery matplotlib jupyter jwst asdf webbpsf scikit-learn"
- PIP_DEPENDENCIES="reproject spectral-cube image_registration tweakwcs photutils"
- PYTHON_VERSION=3.7
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