This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,48 @@ | ||
language: python | ||
# see https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-425720905 | ||
dist: xenial | ||
|
||
sudo: required | ||
|
||
python: | ||
- '3.4' | ||
- '3.5' | ||
- '3.6' | ||
- '3.7' | ||
- '3.8' | ||
|
||
install: | ||
- pip install --upgrade pip setuptools | ||
- pip install django=="$DJANGO" | ||
- pip install -r test-requirements.txt | ||
# These are not supported on all Python versions, so we allow the installation | ||
# to fail. Linting and static analysis only happens on the Python 3.7 builds. | ||
- pip install -r lint-requirements.txt || true | ||
|
||
env: | ||
- DJANGO=1.11 | ||
- DJANGO=2.1 | ||
- DJANGO=2.2 | ||
|
||
before_script: | ||
# see https://github.com/travis-ci/travis-ci/issues/7940 | ||
- sudo rm -f /etc/boto.cfg | ||
|
||
script: | ||
- 'if [[ $(python --version) == "Python 3.7."* ]]; then flake8; fi' | ||
- 'if [[ $(python --version) == "Python 3.7."* ]]; then black --check .; fi' | ||
- 'if [[ $(python --version) == "Python 3.7."* ]]; then sorti --check .; fi' | ||
- 'if [[ $(python --version) == "Python 3.7."* && "$DJANGO" != "1.11" ]]; then pip install . && mypy .; fi' | ||
- 'if [[ $(python --version) == "Python 3.8."* ]]; then flake8; fi' | ||
- 'if [[ $(python --version) == "Python 3.8."* ]]; then black --check .; fi' | ||
- 'if [[ $(python --version) == "Python 3.8."* ]]; then sorti --check .; fi' | ||
- 'if [[ $(python --version) == "Python 3.8."* && "$DJANGO" != "1.11" ]]; then pip install . && mypy .; fi' | ||
- coverage run --source collectfast -m pytest | ||
|
||
after_script: | ||
- coveralls | ||
|
||
matrix: | ||
exclude: | ||
- env: DJANGO=2.1 | ||
python: '3.4' | ||
- env: DJANGO=2.2 | ||
python: '3.4' | ||
- env: DJANGO=1.11 | ||
python: '3.8' | ||
- env: DJANGO=2.1 | ||
python: '3.8' | ||
- env: DJANGO=2.2 | ||
python: '3.8' | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters