-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
38 lines (34 loc) · 950 Bytes
/
.drone.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
matrix:
ELIXIR_VERSION:
- 1.6
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount: [/root/.mix, /root/.hex, ./deps, ./_build, ./.git]
volumes:
- /tmp/cache:/cache
build:
image: elixir:${ELIXIR_VERSION}
commands:
- mix do local.rebar --force, local.hex --force
- MIX_ENV=test mix do deps.get, compile, ecto.create, ecto.migrate, test
# - MIX_ENV=dev mix do deps.get, compile, dialyzer
environment:
- POSTGRES_HOST=database
- POSTGRES_DB=knotex_test
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount: [/root/.mix, /root/.hex, ./deps, ./_build, ./.git]
volumes:
- /tmp/cache:/cache
services:
database:
image: postgres:9.6
environment:
- POSTGRES_DB=knot_test
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres