-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Archerfile
50 lines (49 loc) · 1.35 KB
/
Archerfile
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
name: puffery
version: 1.0.0
scripts:
test-server:
run:
- test-setup
- swift-test
- test-teardown
scripts:
generate-linux-main:
command: cd PufferyServer && swift test --generate-linuxmain
swift-test:
command: cd PufferyServer && swift test
env:
PUFFERY_IN_PROCESS_JOBS: "false"
DATABASE_URL: postgres://puffery-test:puffery-test@localhost:5431/puffery-test
REDIS_URL: redis://localhost:6378
test-setup:
run:
- start-test-db
- start-test-redis
scripts:
start-test-db: |
docker stop psql-puffery-test || true
docker run --rm \
--env POSTGRES_USER=puffery-test \
--env POSTGRES_DB=puffery-test \
--env POSTGRES_PASSWORD=puffery-test \
--name "psql-puffery-test" \
--detach \
--publish 5431:5432 \
postgres:11-alpine
start-test-redis: |
docker stop redis-puffery-test || true
docker run --rm \
--name "redis-puffery-test" \
--detach \
--publish 6378:6379 \
redis \
redis-server --appendonly yes
test-teardown:
run:
- stop-test-db
- stop-test-redis
scripts:
stop-test-db: |
docker stop psql-puffery-test
stop-test-redis: |
docker stop redis-puffery-test