forked from etianen/django-reversion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (54 loc) · 1.32 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
sudo: false
language: python
python:
- 3.6
- 3.5
- 2.7
cache: pip
env:
global:
- 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
exclude:
- python: 2.7
env: DJANGO='>=2.0,<2.1'
addons:
apt:
packages:
- libmysqlclient-dev
services:
- postgresql
- mysql
install:
- pip install flake8 coverage mock sphinx django$DJANGO psycopg2 mysqlclient -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