1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2024-12-22 07:52:43 +00:00
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-01-11 13:58:40 +01:00
parent 2215d50984
commit 962e9aade5
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -30,19 +30,26 @@ cache:
- js/node_modules
- cache/Cypress
lint:
lint-elixir:
stage: check
script:
- export EXITVALUE=0
- mix deps.get
- mix credo --strict -a || export EXITVALUE=1
- mix format --check-formatted --dry-run || export EXITVALUE=1
- exit $EXITVALUE
lint-front:
image: node:14
stage: check
before_script:
- export EXITVALUE=0
- cd js
script:
- yarn install
- yarn run lint || export EXITVALUE=1
- yarn run prettier -c . || export EXITVALUE=1
- yarn run build:assets
- cd ../
- yarn run build:assets || export EXITVALUE=1
- exit $EXITVALUE
artifacts:
expire_in: 1 day
@ -75,7 +82,7 @@ exunit:
- MIX_ENV=test mix ecto.create
- MIX_ENV=test mix ecto.migrate
dependencies:
- lint
- lint-elixir
script:
- mix coveralls
@ -85,7 +92,7 @@ jest:
- cd js
- yarn install
dependencies:
- lint
- lint-front
script:
- yarn run test:unit --no-color
artifacts: