-
Notifications
You must be signed in to change notification settings - Fork 194
/
.travis.yml
46 lines (46 loc) · 1.39 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
dist: bionic
os: linux
language: python
jobs:
include:
- python: "2.7"
env: DJANGO=1.11.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- python: "2.7"
env: DJANGO=1.11.* DJANGO_SETTINGS_MODULE='settings_postgres'
services:
- postgresql
before_script:
- psql -c 'create database travis_test;' -U postgres
- python: "2.7"
env: DJANGO=1.11.* DJANGO_SETTINGS_MODULE='settings_mysql'
services:
- mysql
before_script:
- mysql -e 'create database travis_test;'
- python: "3.7"
env: DJANGO=1.11.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- python: "3.7"
env: DJANGO=2.0.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- python: "3.7"
env: DJANGO=3.0.* DJANGO_SETTINGS_MODULE='settings_sqllite'
- python: "3.7"
env: DJANGO=3.0.* DJANGO_SETTINGS_MODULE='settings_postgres'
services:
- postgresql
before_script:
- psql -c 'create database travis_test;' -U postgres
- python: "3.7"
env: DJANGO=3.0.* DJANGO_SETTINGS_MODULE='settings_mysql'
services:
- mysql
before_script:
- mysql -e 'create database travis_test;'
install:
- pip install -q Django==$DJANGO
- pip install coveralls
- pip install -r test_requirements.txt
script:
- flake8 . --config=flake8
- coverage run --source=django_cron setup.py test
after_success:
- coveralls