-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
45 lines (40 loc) · 1.2 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
dist: bionic
language: python
stages:
- test
- code_quality
- docs
- deploy
jobs:
include:
# Django 2.2: Python 3.6, 3.7 or 3.8
- { stage: test, script: tox, env: TOXENV=py36-django22, python: 3.6 }
- { stage: test, script: tox, env: TOXENV=py37-django22, python: 3.7 }
- { stage: test, script: tox, env: TOXENV=py38-django22, python: 3.8 }
# Django 3.1: Python 3.7, 3.8 or 3.9
- { stage: test, script: tox, env: TOXENV=py37-django31, python: 3.7 }
- { stage: test, script: tox, env: TOXENV=py38-django31, python: 3.8 }
- { stage: test, script: tox, env: TOXENV=py39-django31, python: 3.9 }
# Lint: Python 3.6
- { stage: code_quality, script: tox, env: TOXENV=linters, python: 3.6 }
# Test docs
- { stage: docs, script: tox, env: TOXENV=docs, python: 3.6 }
# Deploy
- stage: deploy
script: skip
deploy:
provider: pypi
username: __token__
edge: true # opt in to dpl v2
on:
branch: master
cache:
directories:
- $HOME/.cache/pip
- $TRAVIS_BUILD_DIR/.tox
install:
- pip install --upgrade pip wheel setuptools
- pip install codecov coverage tox
after_success:
- coverage xml -i
- codecov