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 - npm install -g typescript
stages: stages:
- prepare - test
- build - build
# - package # - package
prepare: code_quality:
stage: prepare stage: test
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
script: script:
- npm install - export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
cache: - docker run
paths: --env SOURCE_CODE="$PWD"
- node_modules/ --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: transpile:
stage: build stage: build
before_script:
- npm install
script: script:
- tsc -p ./ - tsc -p ./
cache:
paths:
- node_modules/
policy: pull
#package: #package:
# stage: package # stage: package
# cache: # cache:
@ -36,3 +45,4 @@ transpile:
# artifacts: # artifacts:
# paths: # paths:
# - code-stats-vscode-*.vsix # - code-stats-vscode-*.vsix