[extra-02] configure drone ci/cd
Some checks reported errors
continuous-integration/drone Build encountered an error
Some checks reported errors
continuous-integration/drone Build encountered an error
This commit is contained in:
parent
7d6a0dedf9
commit
fa2ba4be30
22
.drone.yml
Normal file
22
.drone.yml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: test
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: test
|
||||||
|
image: 'elixir:1.21.1'
|
||||||
|
environemnt:
|
||||||
|
POSTGRES_HOST: db
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASS: postgres
|
||||||
|
commands:
|
||||||
|
- mix do local.rebar --force, local.hex --force, deps.get, deps.compile
|
||||||
|
- mix test --cover --trace --slowest 10
|
||||||
|
|
||||||
|
services:
|
||||||
|
- name: db
|
||||||
|
image: 'postgres:13.3-alpine'
|
||||||
|
environment:
|
||||||
|
POSTGRES_USER: postgres
|
||||||
|
POSTGRES_PASSWORD: postgres
|
Loading…
x
Reference in New Issue
Block a user