forked from ellmetha/django-machina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (55 loc) · 1.42 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
58
59
60
dist: trusty
sudo: required
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
language: python
services:
- postgresql
- mysql
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
env:
- DJANGO_ENV="django>=1.8,<1.9" DB=sqlite
- DJANGO_ENV="django>=1.8,<1.9" DB=postgres
- DJANGO_ENV="django>=1.8,<1.9" DB=mysql
- DJANGO_ENV="django>=1.9,<1.10" DB=sqlite
- DJANGO_ENV="django>=1.9,<1.10" DB=postgres
- DJANGO_ENV="django>=1.9,<1.10" DB=mysql
- DJANGO_ENV="django>=1.10,<1.11" DB=sqlite
- DJANGO_ENV="django>=1.10,<1.11" DB=postgres
- DJANGO_ENV="django>=1.10,<1.11" DB=mysql
matrix:
exclude:
- python: "3.3"
env: DJANGO_ENV="django>=1.9,<1.10" DB=sqlite
- python: "3.3"
env: DJANGO_ENV="django>=1.9,<1.10" DB=postgres
- python: "3.3"
env: DJANGO_ENV="django>=1.9,<1.10" DB=mysql
- python: "3.3"
env: DJANGO_ENV="django>=1.10,<1.11" DB=sqlite
- python: "3.3"
env: DJANGO_ENV="django>=1.10,<1.11" DB=postgres
- python: "3.3"
env: DJANGO_ENV="django>=1.10,<1.11" DB=mysql
install:
- if [[ $DB == "mysql" ]]; then pip install -q mysqlclient; fi
- if [[ $DB == "postgres" ]]; then pip install -q psycopg2; fi
- pip install $DJANGO_ENV
before_script:
- mysql -u root -e 'create database machina_test;'
- psql -c 'create database machina_test;' -U postgres
script:
- make travis
after_success:
- codecov
branches:
only:
- master