forked from gskudder-leadtosale/django_microsoft_auth
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
53 lines (47 loc) · 1.42 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
# Config file for automatic testing at travis-ci.org
# This file will be regenerated if you run travis_pypi_setup.py
language: python
python:
- '3.4'
- '3.5'
- '3.6'
- '3.7'
- '3.8-dev'
- 'pypy3'
env:
global:
- CC_TEST_REPORTER_ID=9331f307ce08c235307dc7cd7724ff21c2be2252f757d2437f5d9e271270a4ef
matrix:
- DJANGO_VERSION=111
- DJANGO_VERSION=20
matrix:
fast_finish: true
allow_failures:
# TODO: Remove 3.7 from allow fail once TravisCI can do 3.7
# https://github.com/travis-ci/travis-ci/issues/9815
- python: '3.7'
env: DJANGO_VERSION=111
- python: '3.7'
env: DJANGO_VERSION=20
- python: '3.8-dev'
env: DJANGO_VERSION=111
- python: '3.8-dev'
env: DJANGO_VERSION=20
# 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}
- export TOX_ENV="py$PY_VERSION-dj$DJANGO_VERSION"
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
after_success:
- coveralls
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT