2017-11-23 12:11:45 +00:00
|
|
|
notifications:
|
|
|
|
email: false
|
2017-11-23 09:06:10 +00:00
|
|
|
|
|
|
|
language: node_js
|
|
|
|
|
|
|
|
node_js:
|
|
|
|
- "8"
|
|
|
|
|
|
|
|
sudo: false
|
|
|
|
|
2017-11-23 12:00:06 +00:00
|
|
|
if: tag IS blank
|
|
|
|
|
2017-11-23 09:06:10 +00:00
|
|
|
before_install:
|
|
|
|
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
|
|
|
- export PATH="$HOME/.yarn/bin:$PATH"
|
|
|
|
|
|
|
|
cache:
|
|
|
|
yarn: true
|
|
|
|
directories:
|
2017-11-23 09:37:04 +00:00
|
|
|
- ".cache"
|
2017-11-23 09:06:10 +00:00
|
|
|
- ".eslintcache"
|
|
|
|
- "node_modules"
|
|
|
|
|
|
|
|
script:
|
2017-11-23 09:37:04 +00:00
|
|
|
- yarn run prettier -- --list-different
|
|
|
|
- yarn run lint
|
2017-11-23 09:55:09 +00:00
|
|
|
- yarn run jest --maxWorkers=4
|
2017-11-23 09:46:33 +00:00
|
|
|
|
|
|
|
after_success:
|
2017-11-23 11:55:39 +00:00
|
|
|
- yarn run codecov
|
2017-11-23 11:41:47 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: script
|
|
|
|
script: yarn run semantic-release
|
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
branch: master
|