forked from JBKahn/django-sharding
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (54 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
54
55
56
sudo: false
language: python
python: 3.5
cache: pip
services:
- mysql
- postgresql
env:
global:
- TRAVIS=true
- DATABASE_URL="postgres://postgres:@localhost/default"
- SHARD_001_DATABASE_URL="mysql://travis:@localhost/shard_001"
- SHARD_002_DATABASE_URL="postgres://postgres:@localhost/shard_002"
- SHARD_003_DATABASE_URL="postgres://postgres:@localhost/shard_003"
- SHARD_004_DATABASE_URL="postgres://postgres:@localhost/shard_004"
- REPLICA_001_DATABASE_URL="postgres://postgres:@localhost/sharding_replica_001"
- REPLICA_002_DATABASE_URL="postgres://postgres:@localhost/sharding_replica_002"
matrix:
- TOX_ENV=py27-dj18
- TOX_ENV=py27-dj19
- TOX_ENV=py27-dj110
- TOX_ENV=py27-dj111
- TOX_ENV=py27-djdev
- TOX_ENV=py34-dj18
- TOX_ENV=py34-dj19
- TOX_ENV=py34-dj110
- TOX_ENV=py34-dj111
- TOX_ENV=py34-djdev
- TOX_ENV=py35-dj18
- TOX_ENV=py35-dj19
- TOX_ENV=py35-dj110
- TOX_ENV=py35-dj111
- TOX_ENV=py35-djdev
matrix:
fast_finish: true
allow_failures:
- env: TOX_ENV=py27-djdev
- env: TOX_ENV=py34-djdev
- env: TOX_ENV=py35-djdev
before_install:
- psql -c 'CREATE DATABASE "default";' -U postgres
- mysql -e 'CREATE DATABASE shard_001;'
- psql -c 'CREATE DATABASE "shard_002";' -U postgres
- psql -c 'CREATE DATABASE "sharding_replica_001";' -U postgres
- psql -c 'CREATE DATABASE "sharding_replica_002";' -U postgres
- psql -c 'CREATE DATABASE "shard_003";' -U postgres
- psql -c 'CREATE DATABASE "shard_004";' -U postgres
install:
- pip install --upgrade pip virtualenv tox coveralls --quiet
script:
- tox -e $TOX_ENV
after_success:
- coveralls
- cat .tox/$TOX_ENV/log/*.log