This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
.travis.yml
77 lines (67 loc) · 2.12 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# We deliberately don't use travis's language=python option because
# we install miniconda and use conda to get python. Additionally,
# Travis's auto-install of python doesn't work on osx images (see
# https://github.com/travis-ci/travis-ci/issues/4729).
# This file should be using semantically named doit commands defined in
# dodo.py
language: generic
sudo: false
os:
- linux
env:
global:
- PYENV_VERSION=3.7
stages:
- test
- name: website_dev
if: tag =~ ^v(\d+|\.)+[a-z]\d+$ OR tag = website_dev
- name: website_release
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$ OR tag = website
jobs:
include:
########## SMOKE TESTING ##########
- &default
stage: test
env: DESC="dev test"
before_install:
- pip install pyctdev && doit miniconda_install
- export PATH="$HOME/miniconda/bin:$PATH" && hash -r
- doit ecosystem_setup
install:
- doit env_create
- source activate earthml
- pip install pyctdev
- doit env_capture
########## DOCS ##########
- &website
<<: *default
stage: website_release
env: DESC="website"
before_script:
- git checkout -b deploy-${TRAVIS_BRANCH}
- git fetch https://github.com/$TRAVIS_REPO_SLUG.git evaluated:refs/remotes/evaluated # all large evaluated notebooks and their json files should be checked in to this branch
- git checkout evaluated -- 'doc/topics/*.ipynb' 'doc/topics/*.json' # only check in evaluated topics
- conda install -y "pyviz/label/dev::nbsite>=0.6.5" sphinx_holoviz_theme selenium phantomjs
script: doit build_website
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./builtdocs
fqdn: earthml.pyviz.org
on:
tags: true
all_branches: true
- <<: *website
stage: website_dev
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./builtdocs
repo: pyviz-dev/earthml
on:
tags: true
all_branches: true
notifications:
email: false