Commit b2bd2572 authored by anton's avatar anton

Add .gitlab-ci.yml config

parent 72c4d3de
Pipeline #51902 failed
code_quality:
image: docker:stable
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
services:
- docker:stable-dind
image: node:latest
stages:
- build
- test
cache:
paths:
- node_modules/
install_dependencies:
stage: build
script:
- 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
- npm install
artifacts:
reports:
codequality: gl-code-quality-report.json
paths:
- node_modules/
run_tests:
stage: test
script: npm test
run_linter:
stage: lint
script: npm run lint
......@@ -13,7 +13,7 @@
"lint": "eslint src/. --config .eslintrc.js",
"metapak": "metapak",
"start": "node src",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"No test specified\" && exit 0"
},
"repository": {
"type": "git",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment