projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'origin/develop' into 2018-12-17-update-frontend
[akkoma]
/
.gitlab-ci.yml
diff --git
a/.gitlab-ci.yml
b/.gitlab-ci.yml
index 4db167febb1cf737e4699e6596ba58ee64dce6a7..8ea652086da7e3b594b411c1650cc9d3abc5650e 100644
(file)
--- a/
.gitlab-ci.yml
+++ b/
.gitlab-ci.yml
@@
-1,4
+1,4
@@
-image: elixir:1.
5
+image: elixir:1.
7.2
services:
- postgres:9.6.2
services:
- postgres:9.6.2
@@
-7,8
+7,14
@@
variables:
POSTGRES_DB: pleroma_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: pleroma_test
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
+ DB_HOST: postgres
+cache:
+ key: ${CI_COMMIT_REF_SLUG}
+ paths:
+ - deps
stages:
stages:
+ - lint
- test
before_script:
- test
before_script:
@@
-18,6
+24,11
@@
before_script:
- MIX_ENV=test mix ecto.create
- MIX_ENV=test mix ecto.migrate
- MIX_ENV=test mix ecto.create
- MIX_ENV=test mix ecto.migrate
+lint:
+ stage: lint
+ script:
+ - MIX_ENV=test mix format --check-formatted
+
unit-testing:
stage: test
script:
unit-testing:
stage: test
script: