forked from holoviz-topics/EarthSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (72 loc) · 2.34 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
78
79
80
81
82
83
84
85
git:
depth: 100
language: generic
env:
global:
- PYENV_VERSION=3.6
stages:
- test
- name: user_install
if: type = cron
- name: doc
if: branch = master AND type != pull_request
_osx_config: &_osx_config
os: osx
osx_image: xcode9.3
env: PYENV_VERSION=3.6.4
before_install:
# set up python
- eval "$(pyenv init -)"
- pyenv install $PYENV_VERSION
# check the below still required
# brew-installed geos interferes with cartopy?
- brew uninstall --ignore-dependencies geos gdal postgis
jobs:
include:
########## TEST USER INSTALL ##########
- &default
stage: user_install
before_install: true
install:
#####
# install doit/pyctdev and use to install miniconda...
- pip install pyctdev && doit miniconda_install && pip uninstall -y doit pyctdev
- export PATH="$HOME/miniconda/bin:$PATH" && hash -r
- conda config --set always_yes True
# ...and now install doit/pyctdev into miniconda
- conda install -c pyviz pyctdev && doit ecosystem_setup
#####
- conda config --set path_conflict warn
- conda create -n earthsim -c conda-forge --file=dependencies.txt conda-forge::python=3.6
- source activate earthsim
- pip install -e .
- doit env_capture
script:
- earthsim fetch-data --path=examples
- travis_wait 60 doit test_all
- <<: *default
<<: *_osx_config
########## TEST DEVELOPER INSTALL ##########
- &dev_default
<<: *default
stage: test
before_script:
- conda install -c pyviz/label/dev -c conda-forge --file=dependencies-dev-overrides.txt
- doit env_capture
- <<: *dev_default
<<: *_osx_config
########## DOCS ##########
- <<: *default
stage: doc
script:
- conda install -c pyviz/label/dev -c conda-forge nbsite sphinx_ioam_theme
- earthsim fetch-data --path=examples
- rm -rf examples/topics/batched_example/*.ipynb # see github.com/pyviz/EarthSim/issues/113
- rm -rf examples/topics/GSSHA_Parameter_Sweep.ipynb # see github.com/pyviz/EarthSim/issues/113
- travis_wait 60 doit docs
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./doc/_build/html
fqdn: earthsim.pyviz.org