forked from getsentry/sentry-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (63 loc) · 1.46 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
os: linux
dist: xenial
services:
- postgresql
- redis-server
language: python
python:
- "2.7"
- "pypy"
- "3.4"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9-dev"
env:
- SENTRY_PYTHON_TEST_POSTGRES_USER=postgres SENTRY_PYTHON_TEST_POSTGRES_NAME=travis_ci_test
cache:
pip: true
cargo: true
branches:
only:
- master
- /^release\/.+$/
jobs:
allow_failures:
- python: "3.9-dev"
include:
- name: Linting
python: "3.8"
install:
- pip install tox
script: tox -e linters
- python: "3.8"
name: Distribution packages
install: []
script: make travis-upload-dist
- python: "3.8"
name: Build documentation
install: []
script: make travis-upload-docs
before_script:
- psql -c 'create database travis_ci_test;' -U postgres
- psql -c 'create database test_travis_ci_test;' -U postgres
install:
- pip install codecov tox
- make install-zeus-cli
script:
- coverage erase
- ./scripts/runtox.sh '' --cov=tests --cov=sentry_sdk --cov-report= --cov-branch
- coverage combine .coverage*
- coverage xml -i
- codecov --file coverage.xml
- '[[ -z "$ZEUS_API_TOKEN" ]] || zeus upload -t "application/x-cobertura+xml" coverage.xml'
notifications:
webhooks:
urls:
- https://zeus.ci/hooks/7ebb3060-90d8-11e8-aa04-0a580a282e07/public/provider/travis/webhook
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always