OpenMediaCenter/.gitlab-ci.yml
2020-06-20 10:02:03 +02:00

43 lines
554 B
YAML

image: node:latest
stages:
- prepare
- build
- test
cache:
paths:
- node_modules/
prepare:
stage: prepare
script:
- npm install --progress=false
build:
stage: build
script:
- npm run build
artifacts:
expire_in: 7 days
paths:
- build/
test:
stage: test
script:
- CI=true npm run test
artifacts:
reports:
junit:
- ./junit.xml
coverage:
stage: test
script:
- CI=true npm run coverage
artifacts:
reports:
cobertura:
- ./coverage/cobertura-coverage.xml