forked from etianen/django-reversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (56 loc) · 1.53 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
57
sudo: false
language: python
dist: xenial
python:
- 3.6
- 3.5
cache: pip
env:
global:
- PYTHONWARNINGS=default,ignore::PendingDeprecationWarning,ignore::ResourceWarning
- DJANGO_DATABASE_USER_POSTGRES=postgres
- DJANGO_DATABASE_USER_MYSQL=travis
matrix:
- DJANGO='>=2.2,<3.0'
- DJANGO='>=2.1,<2.2'
- DJANGO='>=2.0,<2.1'
- DJANGO='>=1.11,<1.12'
matrix:
fast_finish: true
include:
- { python: "2.7", env: DJANGO="==1.11.*" }
- { python: "3.7", env: DJANGO="==2.0.*", sudo: true }
- { python: "3.7", env: DJANGO="==2.1.*", sudo: true }
- { python: "3.7", env: DJANGO="==2.2.*", sudo: true }
addons:
apt:
packages:
- libmysqlclient-dev
services:
- postgresql
- mysql
install:
# mysqlclient 1.4 is not compatible with Django 1.11
- pip install flake8 coverage mock sphinx django$DJANGO psycopg2 mysqlclient==1.3.14 -e .
before_script:
- 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
user: etianen
password:
secure: XW4/9HiChbPJSJe4d/MRcO+ViPGhW1iQ8kVi814KJh7mCxOAKijpW5hfdc9oSKB6d8iYB3OzZ7naIUU9GMce40bpeTgPDLVBLCSYKRNLuVoJdh+Q6ItGUiFf8kAJz5jgopG80QnCpLA9JvYxKVJ4amfYWWm204eQmIEnRRAd+Jk=
on:
tags: true
condition: $DJANGO = '>=2.0,<2.1'
python: 3.6
repo: etianen/django-reversion
distributions: sdist bdist_wheel
notifications:
email: false