-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (57 loc) · 1.56 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
language: "python"
python:
- "3.7"
# - "3.8"
# - "3.9"
# - "3.9-dev" # 3.9 development branch
# - "nightly" # nightly build
branches:
only:
- master
- staging
- /^\d+\.\d+\.\d+.*$/ # tags
stages:
- test
- deploy
install:
- python -m pip install --upgrade pip
- python -m pip install poetry
- poetry install --no-root -v
jobs:
include:
- stage: test
script: poetry run coverage run -m pytest iregex
after_success:
- poetry run codecov
- script: poetry run mypy iregex
- script: poetry run flake8 iregex
- script: poetry run make doctest
- stage: deploy
script: skip
before_deploy:
- poetry config pypi-token.pypi $PYPI_PASSWORD
deploy:
provider: script
script: poetry publish --build
on:
tags: true
repo: ryanpeach/py_idiomatic_regex
branch: master
- script: skip
before_deploy:
- poetry install -v
- poetry run make github
- git config --global user.email "travis@travis-ci.org"
- git config --global user.name "Travis CI"
- git checkout -b docs
- git add docs/
- git commit -m "Travis documentation build."
- git remote add origin-pages https://${GITHUB_TOKEN}@github.com/ryanpeach/py_idiomatic_regex.git > /dev/null 2>&1
deploy:
provider: script
skip_cleanup: true
script: git push --quiet --force --set-upstream origin-pages docs
on:
tags: true
repo: ryanpeach/py_idiomatic_regex
branch: master