Update to CI-config

This commit is contained in:
Juha Ristolainen 2018-11-28 16:14:48 +01:00
parent de7fd87d26
commit 48563352b6
No known key found for this signature in database
GPG Key ID: D80C6C6D40707E83

View File

@ -5,26 +5,35 @@ before_script:
- npm install -g typescript
stages:
- prepare
- test
- build
# - package
prepare:
stage: prepare
code_quality:
stage: test
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script:
- npm install
cache:
paths:
- node_modules/
- 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
transpile:
stage: build
before_script:
- npm install
script:
- tsc -p ./
cache:
paths:
- node_modules/
policy: pull
#package:
# stage: package
# cache:
@ -36,3 +45,4 @@ transpile:
# artifacts:
# paths:
# - code-stats-vscode-*.vsix