-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
48 lines (48 loc) · 1.17 KB
/
.travis.yml
File metadata and controls
48 lines (48 loc) · 1.17 KB
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
dist: bionic
language: python
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
- "nightly"
install:
- pip install -r requirements.txt
script:
- python -m pytest -vv
stages:
- test
- deploy
jobs:
allow_failures:
- python: "3.9-dev"
- python: "nightly"
include:
- stage: deploy
if: (NOT type IN (pull_request)) AND (branch = master)
script: cd docs && make html && touch _build/html/.nojekyll && cd ../
before_deploy:
- git config --local user.name "$GITHUB_USERNAME"
- git config --local user.email "$GITHUB_EMAIL"
- export TRAVIS_TAG=v$(grep -Po '[0-9]+(\.[0-9]+)*' byte_api/__init__.py)
deploy:
- provider: pages
skip_cleanup: true
token: $GITHUB_TOKEN
keep_history: true
local_dir: docs/_build/html
- provider: pypi
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
server: https://upload.pypi.org/legacy/
- provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
target_commitish: $TRAVIS_COMMIT
tag_name: $TRAVIS_TAG
branches:
only:
- master
- develop
- /^release-.*$/