COPYING: wrap to 79, city.jpg Unsplash, wording
[akkoma] / .gitlab-ci.yml
1 image: elixir:1.7.2
2
3 services:
4 - name: postgres:9.6.2
5 command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
6
7 variables:
8 POSTGRES_DB: pleroma_test
9 POSTGRES_USER: postgres
10 POSTGRES_PASSWORD: postgres
11 DB_HOST: postgres
12 MIX_ENV: test
13
14 cache:
15 key: ${CI_COMMIT_REF_SLUG}
16 paths:
17 - deps
18 - _build
19 stages:
20 - lint
21 - test
22
23 before_script:
24 - mix local.hex --force
25 - mix local.rebar --force
26 - mix deps.get
27 - mix compile --force
28 - mix ecto.create
29 - mix ecto.migrate
30
31 lint:
32 stage: lint
33 script:
34 - mix format --check-formatted
35
36 unit-testing:
37 stage: test
38 script:
39 - mix test --trace --preload-modules