-
Notifications
You must be signed in to change notification settings - Fork 13
/
.drone.yml
90 lines (78 loc) · 1.36 KB
/
.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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
---
kind: pipeline
name: challenge_gov_portal
platform:
os: linux
arch: amd64
steps:
- name: elixir_install
image: elixir:1.9
volumes:
- name: mix
path: /root/.mix
commands:
- mix local.rebar --force
- mix local.hex --force
- mix deps.get
- export MIX_ENV=test
- mix compile --force --warnings-as-errors
- mix deps.audit
- name: lint
image: elixir:1.9
volumes:
- name: mix
path: /root/.mix
commands:
- export MIX_ENV=test
- mix format --check-formatted
- mix credo --all --format=oneline
- name: test
image: elixir:1.9
volumes:
- name: mix
path: /root/.mix
environment:
SECRET_KEY_BASE:
from_secret: SECRET_KEY_BASE
commands:
- cp config/test.drone.exs config/test.local.exs
- export MIX_ENV=test
- sleep 15
- mix ecto.migrate
- mix run priv/repo/seeds.exs
- mix test
trigger:
event:
- pull_request
services:
- name: database
image: mdillon/postgis:10
environment:
POSTGRES_DB: challenge_gov_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432
volumes:
- name: mix
temp: {}
---
kind: pipeline
name: challenge_web_client
platform:
os: linux
arch: amd64
steps:
- name: node_install
image: node:11.10.1
commands:
- cd assets
- yarn
- name: build
image: node:11.10.1
commands:
- cd assets
- yarn run build
trigger:
event:
- pull_request