This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
/
.travis.yml
88 lines (77 loc) · 1.88 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
dist: xenial
language: python
python: 3.6
branches:
except:
- 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
# Fix temp issue with pypi deployment
- pip install keyring==21.4.0
script: true
before_deploy:
# Prebuild mkdocs site documentation
- mkdocs build --verbose --clean
deploy:
# Development / test deployment
- provider: pages
skip_cleanup: true
target_branch: gh-pages-test
github_token: "$GH_TOKEN"
local_dir: site
on:
all_branches: true
tags: true
condition: $TRAVIS_TAG == *.dev*
- provider: pypi
skip_cleanup: true
user: aleg
password: "$PYPI_PW"
server: https://test.pypi.org/legacy/
on:
all_branches: true
tags: true
condition: $TRAVIS_TAG == *.dev*
- provider: script
skip_cleanup: true
script: bash ./deploy_anaconda.sh $ANACONDA_DEV_TOKEN
on:
all_branches: true
tags: true
condition: $TRAVIS_TAG == *.dev*
# Production version deployment
- provider: pages
skip_cleanup: true
target_branch: gh-pages-test
github_token: "$GH_TOKEN"
local_dir: site
on:
tags: true
all_branches: true
condition: $TRAVIS_TAG != *.dev*
- provider: pypi
skip_cleanup: true
user: aleg
password: "$PYPI_PW"
on:
tags: true
all_branches: true
condition: $TRAVIS_TAG != *.dev*
- provider: script
skip_cleanup: true
script: bash ./deploy_anaconda.sh $ANACONDA_TOKEN
on:
tags: true
all_branches: true
condition: $TRAVIS_TAG != *.dev*
- provider: releases
api_key: $GH_TOKEN
skip_cleanup: true
on:
tags: true
all_branches: true
condition: $TRAVIS_TAG != *.dev*