regexper-static/.gitlab-ci.yml

38 lines
464 B
YAML
Raw Normal View History

2019-01-03 00:21:29 +00:00
image: node:latest
stages:
2019-01-02 23:26:50 +00:00
- test
- build
cache:
paths:
- node_modules/
before_script:
- yarn install
2019-01-04 23:38:49 +00:00
test-lint:
2019-01-02 23:26:50 +00:00
stage: test
script:
- yarn test:lint
2019-01-04 23:38:49 +00:00
test-unit:
stage: test
coverage: '/^Statements\s*:\s*([^%]+)/'
script:
- yarn test:unit
artifacts:
paths:
- coverage/
pages:
stage: build
script:
2019-01-04 23:38:49 +00:00
- yarn build
- gzip -k -6 $(find public/ -type f)
artifacts:
paths:
2019-01-04 23:38:49 +00:00
- public
only:
2019-01-04 23:38:49 +00:00
- master