forked from gskudder-leadtosale/django_microsoft_auth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
executable file
·56 lines (51 loc) · 2.03 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.6"
- "3.7"
- "3.8"
env:
global:
- CC_TEST_REPORTER_ID=3a13b06d39a7f11741ff67b303667bde176a260f761335f972ecaf815bc567fd
matrix:
- DJANGO_VERSION=111
- DJANGO_VERSION=21
- DJANGO_VERSION=22
- DJANGO_VERSION=30
matrix:
fast_finish: true
exclude:
# Only Django 3.x will support Python 3.8, so only test latest version
# until 3.0 comes out
- python: "3.8"
env: DJANGO_VERSION=111
- python: "3.8"
env: DJANGO_VERSION=21
- python: "3.8"
env: DJANGO_VERSION=22
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