forked from Tivix/django-cron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (48 loc) · 1.56 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
sudo: false
language: python
dist: bionic
python:
- "2.7"
- "3.7"
env:
- DJANGO=1.11.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANGO=1.11.* DJANGO_SETTINGS_MODULE='settings_postgres'
- DJANGO=1.11.* DJANGO_SETTINGS_MODULE='settings_mysql'
- DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_postgres'
- DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_mysql'
- DJANGO=2.2.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- DJANGO=2.2.* DJANGO_SETTINGS_MODULE='settings_postgres'
- DJANGO=2.2.* DJANGO_SETTINGS_MODULE='settings_mysql'
services:
- postgresql
- mysql
addons:
postgresql: "9.6"
install:
- pip install -q Django==$DJANGO
- pip install django-common-helpers
- pip install coveralls
- pip install -r test_requirements.pip
script:
- coverage run manage.py test django_cron
after_success:
- coveralls
before_script:
- sudo mysql -e 'create database travis_test;'
- sudo -u postgres psql -c 'create database travis_test;'
# - sudo python -m flake8 . --config=flake8
matrix:
exclude:
- python: "2.7"
env: DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- python: "2.7"
env: DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_postgres'
- python: "2.7"
env: DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_mysql'
- python: "2.7"
env: DJANGO=2.2.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- python: "2.7"
env: DJANGO=2.2.* DJANGO_SETTINGS_MODULE='settings_postgres'
- python: "2.7"
env: DJANGO=2.2.* DJANGO_SETTINGS_MODULE='settings_mysql'