-
Notifications
You must be signed in to change notification settings - Fork 13
/
.travis.yml
42 lines (36 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
language: python
sudo: false
matrix:
include:
- python: 3.5
env: TOXENV=pyflakes
- python: 3.5
env: TOXENV=check-manifest
- python: 3.5
env: TOXENV=py3-tests
install:
- python -m pip install tox codecov
script:
- python -m tox -c tox.ini -e $TOXENV
after_script:
- codecov
# Do an automatic PyPi release when a tag is created.
# http://docs.travis-ci.com/user/deployment/pypi/
# Make sure builds are triggered for any push so that the tag push will also
# trigger a build.
deploy:
provider: pypi
# Check the Twisted shared 1password vault for information on this user. We
# are using a user rather than an API token due to this issue:
# https://travis-ci.community/t/travis-encrypt-data-too-large-for-pypi-tokens-with-older-repos/5792/11
user: releasebot.twistedchecker
password:
secure: mtYdMYMygS91TAQOyIBcwZyOPsza14bupxJmNyv54ia44BDGvonvi6v1cr93VRkkOcxNNh2XrBKRZdnFHUV1be+3veMuUPOPKze1ck7rUmm0b+Z4eSA0AsCTaWMipQKt1Oy7936muc+E8hJDydM1p1Pp5nmOAravOX7NcZ9OkFM=
distributions: "sdist bdist_wheel"
on:
tags: true
# Only release from a single job.
condition: "$TOXENV = py3-tests"
# All branches is still required.
# https://github.com/travis-ci/travis-ci/issues/1675
all_branches: true