love/.gitlab-ci.yml

29 lines
424 B
YAML
Raw Normal View History

2020-03-20 18:08:29 +00:00
.common:
image: node:12
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
before_script:
- node --version
- yarn --version
- yarn
test:
extends: .common
stage: test
script:
- yarn test
pages:
extends: .common
stage: deploy
2020-03-20 18:13:58 +00:00
only:
- master@holllo/love
2020-03-20 18:08:29 +00:00
script:
- yarn build
- cp 'public/index.html' 'public/404.html'
artifacts:
paths:
- public