forked from holoviz/hvplot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
140 lines (120 loc) · 4.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
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
# 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).
language: generic
sudo: false
os:
- linux
cache:
timeout: 300
directories:
- $HOME/miniconda
before_cache:
- rm -rf $HOME/miniconda/pkgs
- rm -rf $HOME/miniconda/conda-bld
- rm -rf $HOME/miniconda/envs/*/conda-bld
env:
global:
- PYENV_VERSION=3.6
- PKG_TEST_PYTHON="--test-python=py36 --test-python=py27"
- CHANS_DEV="-c pyviz/label/dev -c ioam -c intake"
- CHANS="-c pyviz -c ioam"
stages:
- test
- doc
- name: conda_dev_package
if: tag =~ ^v(\d+|\.)*[a-z]\d*$
- name: pip_dev_package
if: tag =~ ^v(\d+|\.)*[a-z]\d*$
- name: conda_package
if: tag =~ ^v(\d+|\.)*[^a-z]\d*$
- name: pip_package
if: tag =~ ^v(\d+|\.)*[^a-z]\d*$
jobs:
include:
########## DEVELOPER INSTALL ##########
- &default
stage: test
env: DESC="dev test_all_recommended"
before_install:
- 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
- conda install -c pyviz/label/dev pyctdev && doit ecosystem_setup
install:
- doit env_create $CHANS_DEV --python=$PYENV_VERSION
- source activate test-environment
- doit develop_install $CHANS_DEV -o recommended
- doit env_capture
script:
- bokeh sampledata
- doit test_all_recommended
after_success: coveralls
- <<: *default
env: DESC="py2 flakes" PYENV_VERSION=2.7
script: doit test_flakes
########## DOCS ##########
- <<: *default
stage: doc
env: DESC="docs" CHANS_DEV="-c pyviz/label/dev -c pyviz -c ioam -c intake"
script:
- doit develop_install $CHANS_DEV -o doc
- conda uninstall nbsite --force
- pip install git+https://github.com/pyviz/nbsite.git --upgrade
- bokeh sampledata
# note: will vastly simplified in a future version of nbsite
- cd doc
- cp ./user_guide/Streaming.rst ./user_guide/Streaming.rst_bak
- nbsite_nbpagebuild.py ioam hvplot ../examples .
- cp ./user_guide/Streaming.rst_bak ./user_guide/Streaming.rst
- HV_DOC_HTML='true' sphinx-build -b html . ./_build/html
- nbsite_fix_links.py _build/html
- nbsite_cleandisthtml.py ./_build/html take_a_chance
- touch ./_build/html/.nojekyll
- cp -r ../examples/assets ./_build/html/assets
- cp -r ./assets/* ./_build/html/assets/
- cd ..
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./doc/_build/html
fqdn: hvplot.pyviz.org
on:
branch: master
########## END-USER PACKAGES ##########
### CONDA ####
- <<: *default
stage: conda_dev_package
env: DESC="" TRAVIS_NOCACHE=$TRAVIS_JOB_ID
install:
- doit package_build $CHANS_DEV $PKG_TEST_PYTHON --test-group=unit
script:
- doit package_upload --token=$CONDA_UPLOAD_TOKEN --label=dev
- <<: *default
stage: conda_package
env: DESC="" TRAVIS_NOCACHE=$TRAVIS_JOB_ID
install:
- doit package_build $CHANS $PKG_TEST_PYTHON --test-group=unit
script:
- doit package_upload --token=$CONDA_UPLOAD_TOKEN --label=dev --label=main
### PyPI ###
- <<: *default
stage: pip_dev_package
env: PYPI="https://test.pypi.org/legacy/" TRAVIS_NOCACHE=$TRAVIS_JOB_ID
install:
- doit develop_install $CHANS_DEV -o tests && pip uninstall -y hvplot
- doit pip_on_conda
- doit ecosystem=pip package_build --test-python=py36 --test-group=unit
script: doit ecosystem=pip package_upload -u $TPPU -p $TPPP -r ${PYPI}
- <<: *default
stage: pip_package
env: PYPI="https://upload.pypi.org/legacy/" TRAVIS_NOCACHE=$TRAVIS_JOB_ID
install:
- doit develop_install $CHANS_DEV -o tests && pip uninstall -y hvplot
- doit pip_on_conda
- doit ecosystem=pip package_build --test-python=py36 --test-group=unit
script: doit ecosystem=pip package_upload -u $PPU -p $PPP -r ${PYPI}
notifications:
email: false