This repository has been archived by the owner on Nov 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
137 lines (114 loc) · 4.05 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
git:
depth: 100
language: generic
os:
- linux
sudo: false
env:
global:
- PYENV_VERSION=3.6
- CHANS_DEV="-c pyviz/label/dev"
- CHANS_REL="-c pyviz"
- LABELS_DEV="--label dev"
- LABELS_REL="--label dev --label main"
- PKG_TEST_PYTHON="--test-python=py27 --test-python=py36"
cache:
directories:
- $HOME/miniconda
before_cache:
- rm -rf $HOME/miniconda/pkgs
- rm -rf $HOME/miniconda/conda-bld/*
- rm -rf $HOME/miniconda/envs/*/conda-bld
stages:
- test
- name: conda_dev_package
if: tag =~ ^v(\d+|\.)+[a-z]\d+$
- name: pip_dev_package
if: tag =~ ^v(\d+|\.)+[a-z]\d+$
- name: website_dev
if: tag =~ ^v(\d+|\.)+[a-z]\d+$ OR tag = website_dev
- name: conda_package
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$
- name: pip_package
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$
- name: website_release
if: tag =~ ^v(\d+|\.)+[^a-z]\d+$ OR tag = website
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 && doit ecosystem_setup
install:
- doit env_create $CHANS_DEV --python=$PYENV_VERSION
- source activate test-environment
- doit develop_install -o examples -o tests $CHANS_DEV
- doit env_capture
script: doit test_all
# python 2 flake checking typically catches python 2 syntax
# errors where python 3's been assumed...
- <<: *conda_default
env: DESC="py2 flakes" PYENV_VERSION=2.7
script: doit test_lint
########## END-USER PACKAGES ##########
## dev packages
- &pip_default
env: TRAVIS_NOCACHE=$TRAVIS_JOB_ID PYPI=testpypi PYPIUSER=$TPPU PYPIPASS=$TPPP
stage: pip_dev_package
before_install: pip install pyctdev && doit ecosystem=pip ecosystem_setup
install:
- unset PYENV_VERSION && pyenv global 3.6 2.7
- doit ecosystem=pip package_build $PKG_TEST_PYTHON --test-group=unit --sdist-install-build-deps
- doit ecosystem=pip package_build $PKG_TEST_PYTHON --test-group=examples --sdist-install-build-deps
script: doit ecosystem=pip package_upload -u $PYPIUSER -p $PYPIPASS --pypi ${PYPI}
- &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
- doit package_test $CHANS $PKG_TEST_PYTHON --test-group=examples --test-requires=examples
script: doit package_upload --token=$ANACONDA_TOKEN $LABELS
## release packages
- <<: *pip_default
env: TRAVIS_NOCACHE=$TRAVIS_JOB_ID PYPI=pypi PYPIUSER=$PPU PYPIPASS=$PPP
stage: pip_package
- <<: *conda_pkg
stage: conda_package
env: DESC="" TRAVIS_NOCACHE=$TRAVIS_JOB_ID LABELS=$LABELS_REL CHANS=$CHANS_REL
########## DOCS ##########
- &website
<<: *conda_default
stage: website_release
env: DESC="parambokeh.pyviz.org"
script:
- doit develop_install $CHANS_DEV -o doc -o examples -c defaults -c conda-forge # (because phantomjs not on defaults for linux)
- doit docs
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./builtdocs
fqdn: parambokeh.pyviz.org
on:
tags: true
all_branches: true
- <<: *website
stage: website_dev
env: DESC="ioam-docs.github.io/parambokeh-dev"
deploy:
- provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
local_dir: ./builtdocs
repo: ioam-docs/parambokeh-dev
on:
tags: true
all_branches: true