forked from asnramos/panel
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
151 lines (130 loc) · 4.31 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
git:
depth: 100
language: generic
os:
- linux
services:
- xvfb
sudo: false
env:
global:
- PYENV_VERSION=3.6
- CHANS_DEV="-c pyviz/label/dev -c bokeh/label/dev -c conda-forge"
- CHANS_REL="-c pyviz -c conda-forge"
- LABELS_DEV="--label dev"
- LABELS_REL="--label dev --label main"
- PKG_TEST_PYTHON="--test-python=py36"
- DISPLAY=":99.0"
stages:
- test
- name: conda_dev_package
if: tag =~ ^v(\d+|\.)+[a-z]\d+$
- name: conda_package
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$
- name: pip_dev_package
if: tag =~ ^v(\d+|\.)+[a-z]\d+$
- name: pip_package
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$
- name: docs
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$
- name: docs_dev
if: tag =~ ^v(\d+|\.)+[a-z]\d+$
- name: docs_daily
if: ((type = cron OR commit_message =~ /\[doc-build\]/) and branch = master)
jobs:
include:
########## DEVELOPER INSTALL ##########
- &conda_default
stage: test
env: DESC="dev test_all"
before_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>=0.5" && doit ecosystem_setup
install:
- doit env_create $CHANS_DEV --python=$PYENV_VERSION
- source activate test-environment
- conda install -c conda-forge mesalib
- doit develop_install -o recommended -o tests -o build $CHANS_DEV
- python setup.py develop --no-deps
- bokeh sampledata
- doit env_capture
before_script:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x24"
- sleep 3
script: doit test_all_recommended
after_failure:
- sleep 10
after_success: codecov
- <<: *conda_default
env: DESC="py2 tests" PYENV_VERSION=2.7
########## END-USER PACKAGES ##########
## dev packages
- &conda_pkg
<<: *conda_default
stage: conda_dev_package
env: DESC="" TRAVIS_NOCACHE=$TRAVIS_JOB_ID LABELS=$LABELS_DEV CHANS=$CHANS_DEV
install:
- doit package_build $CHANS $PKG_TEST_PYTHON --test-group=unit_deploy
script: doit package_upload --token=$ANACONDA_TOKEN $LABELS
- &pip_pkg
<<: *conda_default
env: PYPI=testpypi PYPIUSER=$TPPU PYPIPASS=$TPPP
stage: pip_dev_package
install:
- doit develop_install $CHANS_DEV -o build && pip uninstall -y panel
- doit pip_on_conda
- conda install $CHANS_DEV nodejs
- doit ecosystem=pip package_build $PKG_TEST_PYTHON --test-group=unit_deploy
script: doit ecosystem=pip package_upload -u $PYPIUSER -p $PYPIPASS --pypi ${PYPI}
## release packages
- <<: *conda_pkg
stage: conda_package
env: DESC="" TRAVIS_NOCACHE=$TRAVIS_JOB_ID LABELS=$LABELS_REL CHANS=$CHANS_REL
- <<: *pip_pkg
env: PYPI=pypi PYPIUSER=$PPU PYPIPASS=$PPP
stage: pip_package
########## DOCS ##########
- &doc_build
<<: *conda_default
stage: docs
env: DESC="docs" HV_DOC_HTML='true'
script:
- doit develop_install $CHANS_DEV -o doc -o examples
# note: will vastly simplified in a future version of nbsite
- nbsite generate-rst --org pyviz --project-name panel
- nbsite build --what=html --output=builtdocs
- touch ./builtdocs/.nojekyll
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./builtdocs
fqdn: panel.pyviz.org
on:
tags: true
all_branches: true
- <<: *doc_build
stage: docs_dev
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./builtdocs
repo: pyviz-dev/panel
on:
tags: true
all_branches: true
- <<: *doc_build
stage: docs_daily
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./builtdocs
repo: pyviz-dev/panel
on:
all_branches: true