-
Notifications
You must be signed in to change notification settings - Fork 59
/
.travis.yml
44 lines (36 loc) · 1.85 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
language: python
python:
- 3.5
- 3.6
env:
- DJANGO=1.11 DATABASE_URL='sqlite://localhost/:memory:'
- DJANGO=1.11 DATABASE_URL='mysql://root@127.0.0.1/django_bulk_update_test'
- DJANGO=1.11 DATABASE_URL='postgres://postgres@127.0.0.1/django_bulk_update_test'
- DJANGO=2.0 DATABASE_URL='sqlite://localhost/:memory:'
- DJANGO=2.0 DATABASE_URL='mysql://root@127.0.0.1/django_bulk_update_test'
- DJANGO=2.0 DATABASE_URL='postgres://postgres@127.0.0.1/django_bulk_update_test'
matrix:
include:
- python: 2.7
env: DJANGO=1.11 DATABASE_URL='sqlite://localhost/:memory:'
- python: 2.7
env: DJANGO=1.11 DATABASE_URL='mysql://root@127.0.0.1/django_bulk_update_test'
- python: 2.7
env: DJANGO=1.11 DATABASE_URL='postgres://postgres@127.0.0.1/django_bulk_update_test'
before_script:
- sh -c "if [ '$DATABASE_URL' = 'postgres://postgres@127.0.0.1/django_bulk_update_test' ];
then psql -c 'DROP DATABASE IF EXISTS django_bulk_update_test;' -U postgres; fi"
- sh -c "if [ '$DATABASE_URL' = 'postgres://postgres@127.0.0.1/django_bulk_update_test' ];
then psql -c 'create database django_bulk_update_test;' -U postgres; fi"
- sh -c "if [ '$DATABASE_URL' = 'mysql://root@127.0.0.1/django_bulk_update_test' ]; then mysql
-e 'create database IF NOT EXISTS django_bulk_update_test CHARACTER SET utf8 COLLATE utf8_general_ci;';
fi"
install:
- pip install -q -r "tests/requirements/django-$DJANGO.txt" && pip install coveralls
- if [ $DATABASE_URL == 'postgres://postgres@127.0.0.1/django_bulk_update_test' ]; then pip
install -q psycopg2 ; fi
- if [ $DATABASE_URL == 'mysql://root@127.0.0.1/django_bulk_update_test' ]; then pip install
-q mysqlclient ; fi
script: coverage run --source=django_bulk_update --omit='django_bulk_update/tests*' runtest.py
after_success:
if [[ $COVERALLS_REPO_TOKEN ]]; then coveralls; fi