react-native/scripts/circleci/analyze_code.sh

12 lines
315 B
Bash
Executable File

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