-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
95 lines (83 loc) · 2.6 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
language: generic
os: linux
env:
global:
- CHANS="-c pyviz"
- LABELS_DEV="--label dev"
- LABELS_REL="--label dev --label main"
- PYENV_VERSION=3.7
- PKG_TEST_PYTHON="--test-python=py37 --test-python=py27"
- MPLBACKEND="Agg"
stages:
- test
- name: dev_package
if: tag =~ ^v(\d+|\.)+[a-z]\d+$
- name: package
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$
- name: website_dev
if: tag =~ ^v(\d+|\.)+[a-z]\d+$ OR tag = website_dev OR commit_message =~ /^.*(website_dev).*$/
- name: website_release
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$ OR tag = website
jobs:
include:
- &pip_default
stage: test
before_install: pip install pyctdev && doit ecosystem_setup
install:
- doit develop_install -o examples -o tests
- doit env_capture
script: doit test_all
- &website
<<: *pip_default
stage: website_release
script:
- doit develop_install -o doc -o examples
- doit build_docs
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./builtdocs
fqdn: contrib_colormaps.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/contrib_colormaps
on:
all_branches: true
## dev packages
- &pip_pkg
<<: *pip_default
env: PYPI=testpypi PYPIUSER=$TPPU PYPIPASS=$TPPP
stage: dev_package
install: True
before_script:
- doit package_build $PKG_TEST_PYTHON --test-group=unit --sdist-install-build-deps
script: doit package_upload -u $PYPIUSER -p $PYPIPASS --pypi ${PYPI}
- &conda_pkg
stage: dev_package
env: LABELS=$LABELS_DEV
install:
- pip install pyctdev && doit ecosystem=conda 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 pyctdev && doit ecosystem=conda ecosystem_setup
before_script:
- travis_wait 60 doit ecosystem=conda package_build $CHANS $PKG_TEST_PYTHON --test-group=unit
script: doit ecosystem=conda package_upload --token=$ANACONDA_TOKEN $LABELS
## release packages
- <<: *pip_pkg
env: PYPI=pypi PYPIUSER=$PPU PYPIPASS=$PPP
stage: package
- <<: *conda_pkg
stage: package
env: LABELS=$LABELS_REL
notifications:
email: false