forked from AngellusMortis/django_microsoft_auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·56 lines (51 loc) · 1.95 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
# Config file for automatic testing at travis-ci.org
# This file will be regenerated if you run travis_pypi_setup.py
language: python
sudo: required
dist: xenial
python:
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "pypy3"
env:
global:
- CC_TEST_REPORTER_ID=88fae959f68f3139aeeb3cd64ce11841115a336fdfc91b7cecd52958acb4d3e9
matrix:
- DJANGO_VERSION=21
- DJANGO_VERSION=22
- DJANGO_VERSION=30
- DJANGO_VERSION=31
matrix:
fast_finish: true
exclude:
- python: "3.5"
env: DJANGO_VERSION=30
- python: "3.5"
env: DJANGO_VERSION=31
- python: "3.8"
env: DJANGO_VERSION=21
include:
- python: "3.7"
env: DJANGO_VERSION=22-extras
# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
install:
- pip install -U tox-travis
- pip install -U coveralls
# command to run tests, e.g. python setup.py test
script: tox -e $TOX_ENV
before_script:
- PY_VERSION=${TRAVIS_PYTHON_VERSION/./}
- PY_VERSION=${PY_VERSION/-dev/}
- PY_VERSION=${PY_VERSION/pypy/py}
- PY_VERSION=${PY_VERSION/py35-6.0/py3}
- export TOX_ENV="py$PY_VERSION-dj$DJANGO_VERSION"
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TOX_ENV" = "py37-dj22-extras" ]]; then curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter; fi
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TOX_ENV" = "py37-dj22-extras" ]]; then chmod +x ./cc-test-reporter; fi
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TOX_ENV" = "py37-dj22-extras" ]]; then ./cc-test-reporter before-build; fi
after_success:
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TOX_ENV" = "py37-dj22-extras" ]]; then coveralls; fi
after_script:
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TOX_ENV" = "py37-dj22-extras" ]]; then coverage xml; fi
- if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TOX_ENV" = "py37-dj22-extras" ]]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT -t coverage.py; fi