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