Commit 8aba5dcf authored by Maxime Emschwiller's avatar Maxime Emschwiller
Browse files

feat(ci): regroup check and lint in ci

parent 2ac7dcb0
# In CI we use the latest docker images.
stages:
- check
- check_and_lint
- test
- lint
- svg-gen-docu # required to be done before documentation and in separate stages
- documentation
......@@ -15,7 +14,7 @@ stages:
check_back:
<<: *only-default
stage: check
stage: check_and_lint
image: registry.gitlab.utc.fr/rex-dri/rex-dri/backend:v0.2.1
before_script:
- sh ./backend/init_logs.sh
......@@ -35,7 +34,7 @@ check_back:
check_front:
<<: *only-default
stage: check
stage: check_and_lint
image: registry.gitlab.utc.fr/rex-dri/rex-dri/frontend:v2.1.0
before_script:
- cd frontend && mkdir -p node_modules && mv -f /usr/src/deps/node_modules/* /usr/src/deps/node_modules/.bin ./node_modules/
......@@ -48,6 +47,27 @@ check_front:
tags:
- docker
flake8:
<<: *only-default
stage: check_and_lint
image: registry.gitlab.utc.fr/rex-dri/rex-dri/backend:v0.2.1
script:
- cd backend && flake8
tags:
- docker
eslint:
<<: *only-default
stage: check_and_lint
image: registry.gitlab.utc.fr/rex-dri/rex-dri/frontend:v2.1.0
before_script:
- cd frontend && mkdir -p node_modules && mv -f /usr/src/deps/node_modules/* /usr/src/deps/node_modules/.bin ./node_modules/
script:
- yarn lint
tags:
- docker
test_back:
<<: *only-default
stage: test
......@@ -86,26 +106,6 @@ test_frontend:
tags:
- docker
flake8:
<<: *only-default
stage: lint
image: registry.gitlab.utc.fr/rex-dri/rex-dri/backend:v0.2.1
script:
- cd backend && flake8
tags:
- docker
eslint:
<<: *only-default
stage: lint
image: registry.gitlab.utc.fr/rex-dri/rex-dri/frontend:v2.1.0
before_script:
- cd frontend && mkdir -p node_modules && mv -f /usr/src/deps/node_modules/* /usr/src/deps/node_modules/.bin ./node_modules/
script:
- yarn lint
tags:
- docker
generate_UML_svg:
<<: *only-default
stage: svg-gen-docu
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment