regexper-static/.gitlab-ci.yml
2019-01-02 18:26:50 -05:00

32 lines
410 B
YAML

image: node:8
stages:
- test
- build
cache:
paths:
- node_modules/
before_script:
- yarn install
lint:
stage: test
script:
- yarn test:lint
pages:
stage: build
variables:
GA_PROP: $PROD_GA_PROPERTY
script:
- BUILD_PATH="$(pwd)/public" yarn gulp build
- rm -r public/__discard__
- gzip -k -6 $(find public/ -type f)
artifacts:
paths:
- public
only:
- master