OpenMediaCenter/.gitlab-ci.yml

35 lines
444 B
YAML
Raw Normal View History

2020-06-09 15:49:41 +00:00
image: node:latest
stages:
- test
2020-06-09 18:10:26 +00:00
- coverage
2020-06-09 15:49:41 +00:00
- build
cache:
paths:
- node_modules/
test:
stage: test
script:
- npm install
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:
stage: coverage
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
2020-06-09 18:10:26 +00:00
2020-06-09 15:49:41 +00:00
build:
stage: build
script:
- npm run build