fixing local development and adding more sanity checks (#107)

This commit is contained in:
Benjamin Boudreau
2019-06-14 21:57:28 -04:00
committed by GitHub
parent df5f820eee
commit 24b04ab812
4 changed files with 6634 additions and 5344 deletions

View File

@@ -14,3 +14,29 @@ jobs:
- run:
name: test
command: npm test && codecov
- run:
name: build
command: |
npm run build
[ -f ./dist/index.html ] || exit 1
[ -f ./dist/blank.html ] || exit 1
[ -f ./dist/widget.js ] || exit 1
[ -f ./dist/bookmarklet.js ] || exit 1
- run:
name: deploy
command: |
if [ "$CIRCLE_BRANCH" = "master" ]; then
npm run deploy
fi
workflows:
version: 2
build-deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only: master