forked from pytest-dev/pytest-django
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
105 lines (90 loc) · 2.5 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
language: python
dist: xenial
jobs:
fast_finish: true
include:
- stage: baseline
python: 3.6
env: TOXENV=py36-dj20-postgres-xdist-coverage
services:
- postgresql
- python: 3.6
env: TOXENV=py36-dj111-sqlite-coverage
- python: 2.7
env: TOXENV=py27-dj111-mysql_innodb-coverage
services:
- mysql
- python: 3.6
env: TOXENV=checkqa,docs
- stage: test
python: 3.7
env: TOXENV=py37-dj21-sqlite-coverage
- python: 3.7
env: TOXENV=py37-dj22-sqlite-coverage
# Explicitly test (older) pytest 4.1.
- python: 3.7
env: TOXENV=py37-dj21-sqlite-pytest41-coverage
- python: 3.6
env: TOXENV=py36-djmaster-sqlite-coverage
- python: 3.5
env: TOXENV=py35-dj110-postgres-coverage
services:
- postgresql
- python: 3.4
env: TOXENV=py34-dj19-sqlite_file-coverage
- python: 2.7
env: TOXENV=py27-dj111-mysql_myisam-coverage
services:
- mysql
- python: 2.7
env: TOXENV=py27-dj18-postgres-coverage
services:
- postgresql
# pypy/pypy3: not included with coverage reports (much slower then).
- python: pypy2.7-6.0
env: TOXENV=pypy-dj111-sqlite_file
- python: pypy3.5-6.0
env: TOXENV=pypy3-dj110-sqlite
- stage: test_release
python: 3.6
env: TOXENV=py36-dj20-postgres
services:
- postgresql
- stage: release
script: skip
install: skip
after_success: true
deploy:
provider: pypi
user: blueyed
password:
secure: "FY7qbX/N0XRcH8hVk00SsQWvNIkuxKvY7Br4ghRnHvleHG3YulJ7WbJnik+9eoBGeMfJeNyzBfVjpeo1ZIq9IZBiyTdNfG/sZFsC5LOoG/CPxPH3nD9JktI2HoBMnlSbGg/MMHjY+wXuOY647U/3qNedcnQmGztYt6QWi5DRxu8="
on:
tags: true
distributions: "sdist bdist_wheel"
# NOTE: does not show up in "allowed failures" section, but is allowed to
# fail (for the "test" stage).
allow_failures:
- env: TOXENV=py36-djmaster-sqlite-coverage
stages:
- name: baseline
if: tag IS NOT present
- name: test
if: tag IS NOT present
- name: test_release
if: tag IS present
- name: release
if: tag IS present
install:
- pip install tox==3.7.0
script:
- tox
after_success:
- |
set -ex
if [[ "${TOXENV%-coverage}" != "$TOXENV" ]]; then
codecov_flags=${TOXENV%-coverage}
codecov_flags=${codecov_flags//-/,}
bash <(curl -s https://codecov.io/bash) -Z -X gcov -X xcode -X gcovout -F "$codecov_flags"
fi
set +x