-image: elixir:1.7.2
+image: elixir:1.8.1
services:
- - postgres:9.6.2
+ - name: postgres:9.6.2
+ command: ["postgres", "-c", "fsync=off", "-c", "synchronous_commit=off", "-c", "full_page_writes=off"]
variables:
POSTGRES_DB: pleroma_test
stages:
- lint
- test
+ - analysis
before_script:
- mix local.hex --force
unit-testing:
stage: test
script:
- - mix test --trace
+ - mix test --trace --preload-modules
+
+analysis:
+ stage: analysis
+ script:
+ - mix credo --strict --only=warnings,todo,fixme,consistency,readability