OpenMediaCenter/.gitlab-ci.yml

46 lines
601 B
YAML
Raw Normal View History

2020-06-09 15:49:41 +00:00
image: node:latest
stages:
2020-06-20 08:02:03 +00:00
- prepare
2020-06-09 15:49:41 +00:00
- build
2020-06-20 08:02:03 +00:00
- test
2020-06-09 15:49:41 +00:00
cache:
paths:
- node_modules/
2020-06-29 19:20:14 +00:00
include:
- template: SAST.gitlab-ci.yml
2020-06-09 15:49:41 +00:00
2020-06-20 08:02:03 +00:00
prepare:
stage: prepare
script:
- npm install --progress=false
build:
stage: build
script:
- npm run build
artifacts:
expire_in: 7 days
paths:
- build/
2020-06-09 15:49:41 +00:00
test:
stage: test
script:
2020-06-09 19:54:52 +00:00
- CI=true npm run test
artifacts:
reports:
junit:
- ./junit.xml
2020-06-09 15:49:41 +00:00
2020-06-09 18:10:26 +00:00
coverage:
2020-06-20 08:02:03 +00:00
stage: test
2020-06-09 18:10:26 +00:00
script:
2020-06-09 19:54:52 +00:00
- CI=true npm run coverage
2020-06-09 18:10:26 +00:00
artifacts:
reports:
2020-06-09 19:54:52 +00:00
cobertura:
- ./coverage/cobertura-coverage.xml