forked from bdragon300/pyzkaccess
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (40 loc) · 1013 Bytes
/
.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
language: python
python:
- '3.9'
- '3.8'
- '3.7'
- '3.6'
- '3.5'
install:
- pip install setuptools tox pytest-cov
script:
- ./run_tests.sh
after_success:
- "bash <(curl -s https://codecov.io/bash)"
jobs:
include:
- stage: build-docs
install: pip install setuptools pdoc3 wrapt fire prettytable
script:
- pdoc3 -o docs --template-dir pdoc_tpl --html pyzkaccess
after_success: true # https://travis-ci.community/t/does-skipping-everything-else-in-a-job-skip-deploy/6461/2
deploy:
provider: pages:git
edge: true
token: $GITHUB_TOKEN
keep_history: true
local_dir: docs
target_branch: gh-pages
on:
branch: master
- stage: deploy
script: skip
after_success: true # https://travis-ci.community/t/does-skipping-everything-else-in-a-job-skip-deploy/6461/2
deploy:
provider: pypi
edge: true
username: "__token__"
password: $PYPI_TOKEN
on:
tags: true
branch: master