2018-03-16 23:48:36 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-08-24 03:23:32 +00:00
|
|
|
cat <(echo eslint; npm run lint --silent -- --format=json; echo flow; npm run flow --silent -- check --json) | node scripts/circleci/code-analysis-bot.js
|
2018-03-16 23:48:36 +00:00
|
|
|
|
|
|
|
# check status
|
|
|
|
STATUS=$?
|
|
|
|
if [ $STATUS == 0 ]; then
|
|
|
|
echo "Code analyzed successfully"
|
|
|
|
else
|
2018-08-24 03:23:32 +00:00
|
|
|
echo "Code analysis failed, error status $STATUS"
|
2018-03-16 23:48:36 +00:00
|
|
|
fi
|