-
Notifications
You must be signed in to change notification settings - Fork 485
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying to lose tox. It's been a right pain.
- Loading branch information
Showing
4 changed files
with
30 additions
and
63 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 |
---|---|---|
|
@@ -12,4 +12,3 @@ MANIFEST | |
docs/_build | ||
.coverage | ||
*.sqlite3 | ||
.tox |
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,39 +1,51 @@ | ||
sudo: false | ||
language: python | ||
python: | ||
- 3.6 | ||
- 3.6 | ||
- 3.5 | ||
- 2.7 | ||
addons: | ||
apt: | ||
packages: | ||
- libmysqlclient-dev | ||
cache: | ||
directories: | ||
- "$HOME/.cache/pip" | ||
- libmysqlclient-dev | ||
cache: pip | ||
env: | ||
global: | ||
- PYTHONWARNINGS=default,ignore::PendingDeprecationWarning,ignore::ResourceWarning | ||
- DJANGO_DATABASE_USER_POSTGRES=postgres | ||
- DJANGO_DATABASE_USER_MYSQL=travis | ||
- PYTHONWARNINGS=default,ignore::PendingDeprecationWarning,ignore::ResourceWarning | ||
- DJANGO_DATABASE_USER_POSTGRES=postgres | ||
- DJANGO_DATABASE_USER_MYSQL=travis | ||
matrix: | ||
- DJANGO='>=2.0,<2.1' | ||
- DJANGO='>=1.11,<1.12' | ||
- DJANGO='>=1.10,<1.11' | ||
- DJANGO='>=1.9,<1.10' | ||
- DJANGO='>=1.8,<1.9' | ||
matrix: | ||
fast_finish: true | ||
services: | ||
- postgresql | ||
- mysql | ||
- postgresql | ||
- mysql | ||
install: | ||
- pyenv shell 2.7 3.5 3.6 | ||
- pip install 'tox>=2.3.1' | ||
- pip install flake8 coverage mock sphinx>=1.4.2 psycopg2 mysqlclient django$DJANGO -e . | ||
before_script: | ||
- mysql -e 'create database test_project' | ||
- psql -c 'create database test_project;' -U postgres; | ||
script: tox | ||
- mysql -e 'create database test_project' | ||
- psql -c 'create database test_project;' -U postgres; | ||
script: | ||
- flake8 | ||
- coverage run tests/manage.py test tests | ||
- cd docs && sphinx-build -n -W . _build | ||
after_success: | ||
- coverage report | ||
deploy: | ||
provider: pypi | ||
distributions: sdist bdist_wheel | ||
user: etianen | ||
password: | ||
secure: XW4/9HiChbPJSJe4d/MRcO+ViPGhW1iQ8kVi814KJh7mCxOAKijpW5hfdc9oSKB6d8iYB3OzZ7naIUU9GMce40bpeTgPDLVBLCSYKRNLuVoJdh+Q6ItGUiFf8kAJz5jgopG80QnCpLA9JvYxKVJ4amfYWWm204eQmIEnRRAd+Jk= | ||
on: | ||
tags: true | ||
distributions: sdist bdist_wheel | ||
condition: $DJANGO='>=2.0,<2.1' | ||
python: 3.6 | ||
repo: etianen/django-reversion | ||
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