forked from PMBio/pycoMeth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (54 loc) · 1.24 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
dist: xenial
language: python
python: 3.6
branches:
only:
- master
- dev
install:
# Install other pip dependencies
- pip install nbconvert requests jinja2 mkdocs mkdocs-material pygments pymdown-extensions mkdocs-exclude
# Install this one after or it raises an error
- pip install mknotebooks
script: true
before_deploy:
# Prebuild mkdocs site documentation
- mkdocs build --verbose --clean
deploy:
# Deploy mkdoc documentation to github page
- provider: pages
skip_cleanup: true
target_branch: gh-pages-test
github_token: "$GH_TOKEN"
local_dir: site
on:
branch: dev
- provider: pages
skip_cleanup: true
github_token: "$GH_TOKEN"
local_dir: site
on:
branch: master
# Deploy package to pypy
- provider: pypi
user: aleg
password: "$PYPI_PW"
server: https://test.pypi.org/legacy/
on:
branch: dev
- provider: pypi
user: aleg
password: "$PYPI_PW"
on:
branch: master
# Deploy to Anaconda
- provider: script
skip_cleanup: true
script: bash ./deploy_anaconda.sh $ANACONDA_DEV_TOKEN
on:
branch: dev
- provider: script
skip_cleanup: true
script: bash ./deploy_anaconda.sh $ANACONDA_TOKEN
on:
branch: master