-
Notifications
You must be signed in to change notification settings - Fork 16
/
docker-compose.yml
68 lines (63 loc) · 1.5 KB
/
docker-compose.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
61
62
63
64
65
66
67
68
version: '2.1'
services:
nginx:
build:
context: .
volumes:
- "./nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf"
- "./src/:/lua/src/"
depends_on:
- redis_cluster
links:
- redis_cluster
ports:
- "8080:8080"
test:
command: busted -c
environment:
- TRAVIS=true
- CI=true
- COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN}
- TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
- TRAVIS_BRANCH=${TRAVIS_BRANCH}
- TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG}
build:
context: .
dockerfile: Dockerfile.test
volumes:
- ".:/lua/"
working_dir: "/lua"
coverage:
command: luacov-coveralls -v
environment:
- TRAVIS=true
- CI=true
- COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN}
- TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
- TRAVIS_BRANCH=${TRAVIS_BRANCH}
- TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG}
build:
context: .
dockerfile: Dockerfile.test
volumes:
- ".:/lua/"
working_dir: "/lua"
lint:
command: bash -c "luacheck -q ."
environment:
- TRAVIS=true
- CI=true
- COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN}
- TRAVIS_JOB_ID=${TRAVIS_JOB_ID}
- TRAVIS_BRANCH=${TRAVIS_BRANCH}
- TRAVIS_REPO_SLUG=${TRAVIS_REPO_SLUG}
build:
context: .
dockerfile: Dockerfile.test
volumes:
- ".:/lua/"
working_dir: "/lua"
redis_cluster:
image: grokzen/redis-cluster:latest
ports:
- '7000-7005:7000-7005'