|
|
@ -1,6 +1,5 @@ |
|
|
|
stages: |
|
|
|
- test |
|
|
|
# - codequality |
|
|
|
- build |
|
|
|
- deploy |
|
|
|
|
|
|
@ -19,26 +18,26 @@ build: |
|
|
|
paths: |
|
|
|
- build/.pio/build/lolin_d32_pro/*.bin |
|
|
|
|
|
|
|
codequality: |
|
|
|
stage: codequality |
|
|
|
image: docker:stable |
|
|
|
variables: |
|
|
|
DOCKER_DRIVER: overlay2 |
|
|
|
allow_failure: true |
|
|
|
services: |
|
|
|
- docker:stable-dind |
|
|
|
script: |
|
|
|
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') |
|
|
|
- docker run |
|
|
|
--env SOURCE_CODE="$PWD" |
|
|
|
--volume "$PWD":/code |
|
|
|
--volume /var/run/docker.sock:/var/run/docker.sock |
|
|
|
"registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code |
|
|
|
artifacts: |
|
|
|
reports: |
|
|
|
codequality: gl-code-quality-report.json |
|
|
|
#codequality: |
|
|
|
# stage: test |
|
|
|
# image: docker:stable |
|
|
|
# variables: |
|
|
|
# DOCKER_DRIVER: overlay2 |
|
|
|
# allow_failure: true |
|
|
|
# services: |
|
|
|
# - docker:stable-dind |
|
|
|
# script: |
|
|
|
# - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') |
|
|
|
# - docker run |
|
|
|
# --env SOURCE_CODE="$PWD" |
|
|
|
# --volume "$PWD":/code |
|
|
|
# --volume /var/run/docker.sock:/var/run/docker.sock |
|
|
|
# "registry.gitlab.com/gitlab-org/security-products/codequality:$SP_VERSION" /code |
|
|
|
# artifacts: |
|
|
|
# reports: |
|
|
|
# codequality: gl-code-quality-report.json |
|
|
|
|
|
|
|
test: |
|
|
|
static_analysis: |
|
|
|
stage: test |
|
|
|
image: debian:testing |
|
|
|
allow_failure: true |
|
|
|