.gitlab-ci.yml 384 Bytes
Newer Older
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
image: elixir:1.6

services:
  - postgres:9.6

variables:
  MIX_ENV: "test"
  POSTGRES_DB: "thunder_snow_test"
  POSTGRES_USER: "wind"
  POSTGRES_PASSWORD: "r@nd0m"
  POSTGRES_HOST: "postgres"

stages:
  - test

before_script:
  - mix local.hex --force
  - mix local.rebar --force
  - mix deps.get --only test
  - mix ecto.reset

unit-testing:
  stage: test
  script:
    - mix test