Setup Gitlab CI

This commit is contained in:
2022-02-20 22:43:29 +01:00
parent 8fd3659e63
commit 79e83afafb

View File

@@ -11,3 +11,27 @@ sast:
stage: test stage: test
include: include:
- template: Security/SAST.gitlab-ci.yml - template: Security/SAST.gitlab-ci.yml
.elixir: &elixir
image: elixir:1.13
before_script:
- mix local.hex --force
- mix local.rebar --force
- mix deps.get --only $MIX_ENV
lint:elixir:
extends: .elixir
stage: test
variables:
MIX_ENV: test
script:
- mix compile --warnings-as-errors --force
- mix format --check-formatted
test:elixir:
extends: .elixir
stage: test
variables:
MIX_ENV: test
script:
- mix test