mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 22:23:37 +00:00
Summary:Using local version of the Flow make it easy to have project specific version instead of relying on the user to have the correct version installed globally. For example, React Native uses an older version of Flow, while I have the latest version installed. Now I cannot typecheck the code because my version doesn't match the `.flowconfig`. **Test plan (required)** Run `npm run lint` and `npm run flow` to run `eslint` and `flow`. cc bestander mkonicek Closes https://github.com/facebook/react-native/pull/6145 Reviewed By: dmmiller Differential Revision: D2976616 Pulled By: bestander fb-gh-sync-id: bb08f6f8ceb09f644ec1d45c40b4cb7a9d3cfef5 shipit-source-id: bb08f6f8ceb09f644ec1d45c40b4cb7a9d3cfef5
55 lines
1.0 KiB
YAML
55 lines
1.0 KiB
YAML
language: objective-c
|
|
|
|
osx_image: xcode7.2
|
|
|
|
cache:
|
|
directories:
|
|
- node_modules
|
|
- .nvm
|
|
|
|
install:
|
|
- brew reinstall nvm
|
|
- mkdir -p .nvm
|
|
- export NVM_DIR="$PWD/.nvm"
|
|
- source $(brew --prefix nvm)/nvm.sh
|
|
- nvm install 5
|
|
- rm -Rf "${TMPDIR}/jest_preprocess_cache"
|
|
- npm config set spin=false
|
|
- npm config set progress=false
|
|
- npm install
|
|
|
|
script:
|
|
- |
|
|
if [ "$TEST_TYPE" = objc ]
|
|
then
|
|
|
|
travis_retry ./scripts/objc-test.sh
|
|
|
|
elif [ "$TEST_TYPE" = js ]
|
|
then
|
|
|
|
npm install github@0.2.4
|
|
cat <(echo eslint; npm run lint --silent -- --format=json; echo flow; npm run flow --silent -- --json) | GITHUB_TOKEN="af6ef0d15709bc91d""06a6217a5a826a226fb57b7" node bots/code-analysis-bot.js
|
|
npm run flow && npm test
|
|
|
|
elif [ "$TEST_TYPE" = e2e-objc ]
|
|
then
|
|
|
|
travis_retry ./scripts/e2e-test.sh
|
|
|
|
else
|
|
echo "Unknown test type: $TEST_TYPE"
|
|
exit 1
|
|
fi
|
|
|
|
env:
|
|
matrix:
|
|
- TEST_TYPE=objc
|
|
- TEST_TYPE=js
|
|
- TEST_TYPE=e2e-objc
|
|
|
|
branches:
|
|
only:
|
|
- master
|
|
- /^.*-stable$/
|