regexper-static/.gitlab-ci.yml

32 lines
410 B
YAML
Raw Normal View History

2019-01-01 14:03:06 +00:00
image: node:8
stages:
2019-01-02 23:26:50 +00:00
- test
- build
cache:
paths:
- node_modules/
before_script:
- yarn install
2019-01-02 23:26:50 +00:00
lint:
stage: test
script:
- yarn test:lint
pages:
stage: build
variables:
GA_PROP: $PROD_GA_PROPERTY
script:
2019-01-01 14:08:39 +00:00
- BUILD_PATH="$(pwd)/public" yarn gulp build
2019-01-01 14:13:24 +00:00
- rm -r public/__discard__
- gzip -k -6 $(find public/ -type f)
artifacts:
paths:
- public
only:
- master