mirror of
https://github.com/status-im/react-native.git
synced 2025-01-16 04:24:15 +00:00
854c5ddf16
Summary:Merged Travis js tests into one test run. This should simplify test runs, reduce chances of external infra failures and make CI reports more focused. **Test plan (required)** See how travis runs it. Need to double check that APPETIZE_TOKEN and S3_TOKEN aren't used. Closes https://github.com/facebook/react-native/pull/6172 Differential Revision: D3001437 fb-gh-sync-id: 203e18ce0706d4ab1ab55cfe016beed3e3558dcc shipit-source-id: 203e18ce0706d4ab1ab55cfe016beed3e3558dcc
57 lines
1.1 KiB
YAML
57 lines
1.1 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 -g flow-bin@`node -p "require('fs').readFileSync('.flowconfig', 'utf8').split('[version]')[1].trim()"`
|
|
- 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; flow --json) | GITHUB_TOKEN="af6ef0d15709bc91d""06a6217a5a826a226fb57b7" node bots/code-analysis-bot.js
|
|
flow check
|
|
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$/
|