add cache, credo and postgis to ci

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2018-01-13 23:49:37 +01:00
parent 97c1c4e2a3
commit 960ef0c276
3 changed files with 12 additions and 1 deletions

View File

@@ -1,11 +1,18 @@
image: elixir:latest
services:
- postgres:latest
- mdillon/postgis:9.6-alpine
variables:
MIX_ENV: "test"
cache:
key: "$CI_JOB_NAME"
paths:
- deps
- _build
- .rebar3
before_script:
- mix local.rebar --force
- mix local.hex --force
@@ -13,4 +20,5 @@ before_script:
mix:
script:
- mix credo
- mix test