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