forked from mdn/kuma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.test.yml
57 lines (54 loc) · 1.57 KB
/
docker-compose.test.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
version: '2.1'
services:
noext:
#run tests with no external dependencies
image: quay.io/mozmar/kuma_base
user: ${UID:-0}
volumes:
- ./:/app
command: py.test --nomigrations --junit-xml=/app/test_results/smoke.xml kuma/humans kuma/spam
environment:
- DATABASE_URL=sqlite:///
- PYTHONDONTWRITEBYTECODE=1
sqlite_memcached:
#memcached only external dependency
#many tests currently fail due to dependency on mysql specific behavior
image: quay.io/mozmar/kuma_base
user: ${UID:-0}
volumes:
- ./:/app
command: py.test --nomigrations kuma --ignore=kuma/search
depends_on:
- memcached
environment:
- DATABASE_URL=sqlite:///
- MEMCACHE_SERVERS=memcached:11211
- PYTHONDONTWRITEBYTECODE=1
nosearch:
image: quay.io/mozmar/kuma_base
user: ${UID:-0}
volumes:
- ./:/app
command: py.test --nomigrations kuma --ignore=kuma/search
depends_on:
- memcached
- mysql
environment:
- DATABASE_URL=mysql://root:kuma@mysql:3306/developer_mozilla_org
- MEMCACHE_SERVERS=memcached:11211
- PYTHONDONTWRITEBYTECODE=1
test:
image: quay.io/mozmar/kuma_base
user: ${UID:-0}
volumes:
- ./:/app
command: py.test --nomigrations --junit-xml=/app/test_results/django.xml kuma
depends_on:
- memcached
- mysql
- elasticsearch
environment:
- DATABASE_URL=mysql://root:kuma@mysql:3306/developer_mozilla_org
- ES_URLS=elasticsearch:9200
- MEMCACHE_SERVERS=memcached:11211
- PYTHONDONTWRITEBYTECODE=1