-
Notifications
You must be signed in to change notification settings - Fork 116
/
travis.yml
39 lines (34 loc) · 1.06 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
language: python
dist: xenial
matrix:
include:
- python: 3.5
env: TOX_ENV='flake8'
- python: 3.5
env: TOX_ENV='isort'
# Django 2.2, run all supported versions for LTS releases
- python: 3.5
env: DJANGO='dj22'
- python: 3.6
env: DJANGO='dj22'
- python: 3.7
env: DJANGO='dj22'
- python: 3.8
env: DJANGO='dj22'
# Django 3.0, always run the lowest supported version
- python: 3.6
env: DJANGO='dj30'
# Django 3.1, always run the lowest supported version
- python: 3.6
env: DJANGO='dj31'
install:
- pip install coverage isort tox
- "if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then export PY_VER=py35; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.6' ]]; then export PY_VER=py36; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.7' ]]; then export PY_VER=py37; fi"
- "if [[ $TRAVIS_PYTHON_VERSION == '3.8' ]]; then export PY_VER=py38; fi"
- "if [[ ${DJANGO}z != 'z' ]]; then export TOX_ENV=$PY_VER; fi"
script:
- tox -e $TOX_ENV
after_success:
- bash <(curl -s https://codecov.io/bash)