.gitlab-ci.yml
stages:
- test
- build
test:
image: node:10
stage: test
except:
- gh-pages
coverage: /All files([^|]*\|){4}[^\d]+([\d|\.]+)/
before_script:
- yarn
script:
- yarn test --coverage
build:
image: node:10
stage: build
only:
- master
before_script:
- yarn
script:
- ./build.sh