diff options
author | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-12-09 11:37:02 +0100 |
---|---|---|
committer | Pierre de Lacroix <pierre@pdelacroix.com> | 2020-12-09 13:04:53 +0100 |
commit | e195403613e977581d8c6daf4485a055959f4295 (patch) | |
tree | db6fede8164782facfae767d970bdf5838ce92e6 /.gitlab-ci.yml | |
parent | run formatter (diff) |
fix tests in CI
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1dfcee7..9d6c6d8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,8 +11,18 @@ before_script: test: stage: static_analysis + services: + - postgres:latest + variables: + POSTGRES_DB: matrix_app_service_test + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + POSTGRES_HOST: postgres + POSTGRES_HOST_AUTH_METHOD: trust script: - MIX_ENV=test mix compile + - MIX_ENV=test mix ecto.create + - MIX_ENV=test mix ecto.migrate - mix test --cover artifacts: when: always |