mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 12:05:06 +00:00
6f6084db69
Summary: Due to issues with Circle's Docker images ([link](https://twitter.com/circleci/status/974694807091073024)), jobs are failing with an error "yarn not found". Test Plan Run on Circle Release Notes [GENERAL][MINOR][.circleci] - Fix Circle issue Closes https://github.com/facebook/react-native/pull/18419 Differential Revision: D7312052 Pulled By: hramos fbshipit-source-id: 2768b9c69046a2f80518430024d3e7afbbd7de65
13 lines
394 B
Bash
Executable File
13 lines
394 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cat <(echo eslint; yarn --silent lint --format=json; echo flow; yarn --silent flow check --json) | GITHUB_TOKEN=$GITHUB_TOKEN CI_USER=$CI_USER CI_REPO=$CI_REPO PULL_REQUEST_NUMBER=$PULL_REQUEST_NUMBER node bots/code-analysis-bot.js
|
|
|
|
# check status
|
|
STATUS=$?
|
|
if [ $STATUS == 0 ]; then
|
|
echo "Code analyzed successfully"
|
|
else
|
|
echo "Code analyzis failed, error status $STATUS"
|
|
fi
|
|
|