.gitlab-ci.yml 552 Bytes
Newer Older
lain's avatar
lain committed
1
image: elixir:1.7.2
lain's avatar
lain committed
2
3
4
5
6
7

services:
  - postgres:9.6.2

variables:
  POSTGRES_DB: pleroma_test
Roger Braun's avatar
Roger Braun committed
8
9
  POSTGRES_USER: postgres
  POSTGRES_PASSWORD: postgres
lain's avatar
lain committed
10
  DB_HOST: postgres
rinpatch's avatar
rinpatch committed
11
12
13
cache:
  paths:
          - deps
rinpatch's avatar
rinpatch committed
14
          - _build
lain's avatar
lain committed
15
stages:
lain's avatar
lain committed
16
  - lint
lain's avatar
lain committed
17
18
19
  - test

before_script:
lain's avatar
lain committed
20
21
  - mix local.hex --force
  - mix local.rebar --force
lain's avatar
lain committed
22
23
24
25
  - mix deps.get
  - MIX_ENV=test mix ecto.create
  - MIX_ENV=test mix ecto.migrate

lain's avatar
lain committed
26
27
28
29
30
lint:
  stage: lint
  script:
    - MIX_ENV=test mix format --check-formatted

lain's avatar
lain committed
31
32
33
unit-testing:
  stage: test
  script:
lain's avatar
lain committed
34
    - MIX_ENV=test mix test --trace