-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
56 lines (47 loc) · 961 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
45
46
47
48
49
50
51
52
53
54
55
56
sudo: false
language: python
cache: pip
python:
- 2.7
- 3.6
- 3.7
- 3.8
services:
- postgresql
install:
- pip install tox-travis
- pip install coverage codecov
- pip install wheel
script:
- tox
after_success:
- pip install codecov coveralls
- codecov --required -n "py${TRAVIS_PYTHON_VERSION}"
- "COVERALLS_PARALLEL=true coveralls"
notifications:
webhooks: https://coveralls.io/webhook
stages:
- test
- name: publish
if: tag IS present
jobs:
fast_finish: true
include:
- stage: test
python: 3.8
- stage: publish
python: 3.8
install: true
script: python setup.py sdist bdist_wheel
after_success: true
deploy:
edge: true
provider: releases
name: $TRAVIS_TAG
target_commitish: $TRAVIS_COMMIT
api_key: "$GITHUB_OAUTH_TOKEN"
skip_cleanup: true
file: dist/*
on:
branch: master
tags: true