build: run check-format first

This commit is contained in:
vsavkin 2017-10-03 15:40:39 -04:00
parent cc5de0a082
commit ce1b0c0850
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
"release": "./scripts/release.sh",
"copy": "./scripts/copy.sh",
"test": "yarn build && ./scripts/test.sh",
"ci": "yarn build && ./scripts/check-format.sh && ./scripts/test.sh && ./scripts/e2e.sh",
"ci": "./scripts/check-format.sh && yarn build && ./scripts/test.sh && ./scripts/e2e.sh",
"publish_npm": "./scripts/publish.sh",
"postinstall": "./scripts/copy-clis.sh"
},

View File

@ -3,13 +3,13 @@
find packages/ -iname "*.ts" | xargs -n1 clang-format -output-replacements-xml | grep -c "<replacement " >/dev/null
if [ $? -ne 1 ]
then
echo "Please run `yarn format`"
echo "Please run yarn format"
exit 1;
fi
find e2e/ -iname "*.ts" | xargs -n1 clang-format -output-replacements-xml | grep -c "<replacement " >/dev/null
if [ $? -ne 1 ]
then
echo "Please run `yarn format`"
echo "Please run yarn format"
exit 1;
fi