Merge branch 'test-ci' into 'master'

Gitlab CI-config to build the extension vsix-package.

See merge request juha.ristolainen/code-stats-vscode!15
This commit is contained in:
Juha Ristolainen 2019-04-04 19:44:28 +00:00
commit d17a36dd82

View File

@ -1,45 +1,20 @@
image: node:10-alpine image: node:10-alpine
stages: stages:
# - build - package
- test
# - package
code_quality: package:
stage: test stage: package
image: docker:stable before_script:
variables: - npm install -g vsce
DOCKER_DRIVER: overlay2 - npm install -g typescript
allow_failure: true - npm install
services: cache:
- docker:stable-dind paths:
- node_modules/
script: script:
- export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/') - vsce package
- 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: artifacts:
reports: paths:
codequality: gl-code-quality-report.json - code-stats-vscode-*.vsix
#transpile:
# stage: build
# before_script:
# - npm install -g vsce
# - npm install -g typescript
# - npm install
# script:
# - tsc -p ./
#package:
# stage: package
# cache:
# paths:
# - node_modules/
# policy: pull
# script:
# - vsce package
# artifacts:
# paths:
# - code-stats-vscode-*.vsix