mirror of
https://gitlab.com/aviortheking/code-stats-vscode.git
synced 2025-06-07 15:59:54 +00:00
Update to CI-config
This commit is contained in:
parent
de7fd87d26
commit
48563352b6
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user