.gitlab-ci.yml 481 Bytes
Newer Older
lain's avatar
.    
lain committed
1
image: elixir:1.6.4
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
11

stages:
lain's avatar
lain committed
12
  - lint
lain's avatar
lain committed
13
14
15
  - test

before_script:
lain's avatar
lain committed
16
17
  - mix local.hex --force
  - mix local.rebar --force
lain's avatar
lain committed
18
19
20
21
  - mix deps.get
  - MIX_ENV=test mix ecto.create
  - MIX_ENV=test mix ecto.migrate

lain's avatar
lain committed
22
23
24
25
26
lint:
  stage: lint
  script:
    - MIX_ENV=test mix format --check-formatted

lain's avatar
lain committed
27
28
29
unit-testing:
  stage: test
  script:
lain's avatar
lain committed
30
    - MIX_ENV=test mix test --trace