forked from jazzband/django-silk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (44 loc) · 1.68 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
language: python
python:
- "2.7"
- "3.4"
- "3.5"
env:
# PostgreSQL
- DJANGO="Django>=1.7.0,<1.8.0" DB=postgresql DB_NAME=travis_ci_test
- DJANGO="Django>=1.8.0,<1.9.0" DB=postgresql DB_NAME=travis_ci_test
- DJANGO="Django>=1.9.0,<1.10.0" DB=postgresql DB_NAME=travis_ci_test
- DJANGO="Django>=1.10b1,<1.11.0" DB=postgresql DB_NAME=travis_ci_test
# SQLite3
- DJANGO="Django>=1.7.0,<1.8.0" DB=sqlite3 DB_NAME=db.sqlite3
- DJANGO="Django>=1.8.0,<1.9.0" DB=sqlite3 DB_NAME=db.sqlite3
- DJANGO="Django>=1.9.0,<1.10.0" DB=sqlite3 DB_NAME=db.sqlite3
- DJANGO="Django>=1.10b1,<1.11.0" DB=sqlite3 DB_NAME=db.sqlite3
# MySQL
- DJANGO="Django>=1.7.0,<1.8.0" DB=mysql DB_NAME=mysql_db
- DJANGO="Django>=1.8.0,<1.9.0" DB=mysql DB_NAME=mysql_db
- DJANGO="Django>=1.9.0,<1.10.0" DB=mysql DB_NAME=mysql_db
- DJANGO="Django>=1.10b1,<1.11.0" DB=mysql DB_NAME=mysql_db
matrix:
allow_failures:
- python: "2.7"
env: DJANGO="Django>=1.10b1,<1.11.0"
- python: "3.4"
env: DJANGO="Django>=1.10b1,<1.11.0"
- python: "3.5"
env: DJANGO="Django>=1.10b1,<1.11.0"
fast_finish: true
install:
- pip install -q $DJANGO
- pip install -r requirements.txt
# Handle PostgreSQL
- if [[ "$DB" = "postgresql" ]]; then pip install psycopg2; fi
- if [[ "$DB" = "postgresql" ]]; then psql -c 'create database travis_ci_test;' -U postgres; fi
# Handle MySQL
- if [[ "$DB" = "mysql" ]]; then pip install mysqlclient; fi
- if [[ "$DB" = "mysql" ]]; then mysql -e 'create database mysql_db;'; fi
script:
- cd project
- ./tests/test_migrations.sh
- python manage.py test --noinput
- cd -