Skip to content
Snippets Groups Projects
Commit 4f4d2541 authored by N5608's avatar N5608
Browse files

Update .gitlab-ci.yml

parent c27502a6
No related branches found
No related tags found
No related merge requests found
......@@ -24,6 +24,73 @@ test:
- echo "Running react test suite......"
tags:
- general
license_management:
stage: test
image:
name: "registry.gitlab.com/gitlab-org/security-products/license-management:$CI_SERVER_VERSION_MAJOR-$CI_SERVER_VERSION_MINOR-stable"
entrypoint: [""]
variables:
SETUP_CMD: $LICENSE_MANAGEMENT_SETUP_CMD
allow_failure: true
script:
- /run.sh analyze .
artifacts:
reports:
license_management: $CI_PROJECT_DIR/gl-license-management-report.json
expire_in: 1 week
dependencies: []
only:
refs:
- branches
variables:
- $GITLAB_FEATURES =~ /\blicense_management\b/
except:
variables:
- $LICENSE_MANAGEMENT_DISABLED
tags:
- general
code_quality:
stage: test
image: docker:stable
allow_failure: true
services:
- docker:stable-dind
variables:
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
script:
- |
if ! docker info &>/dev/null; then
if [ -z "$DOCKER_HOST" -a "$KUBERNETES_PORT" ]; then
export DOCKER_HOST='tcp://localhost:2375'
fi
fi
- 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:12-0-stable" /code
artifacts:
reports:
codequality: $CI_PROJECT_DIR/gl-code-quality-report.json
expire_in: 1 week
when: always
dependencies: []
only:
refs:
- branches
- tags
except:
variables:
- $CODE_QUALITY_DISABLED
tags:
- general
deploy:
stage: deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment