2016-02-10 15:04:48 +00:00
|
|
|
language: objective-c
|
|
|
|
|
|
|
|
osx_image: xcode7.2
|
|
|
|
|
|
|
|
cache:
|
2016-02-16 18:20:56 +00:00
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
- .nvm
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
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
|
2016-03-02 23:24:44 +00:00
|
|
|
- npm config set progress=false
|
2016-02-10 15:04:48 +00:00
|
|
|
- npm install -g flow-bin@`node -p "require('fs').readFileSync('.flowconfig', 'utf8').split('[version]')[1].trim()"`
|
|
|
|
- npm install
|
|
|
|
|
|
|
|
script:
|
|
|
|
- |
|
|
|
|
if [ "$TEST_TYPE" = objc ]
|
|
|
|
then
|
|
|
|
|
2016-03-02 23:24:44 +00:00
|
|
|
travis_retry ./scripts/objc-test.sh
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
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
|
2016-03-02 23:24:44 +00:00
|
|
|
flow check
|
|
|
|
npm test
|
2016-02-10 15:04:48 +00:00
|
|
|
|
2016-03-02 23:24:44 +00:00
|
|
|
elif [ "$TEST_TYPE" = e2e-objc ]
|
2016-02-10 15:04:48 +00:00
|
|
|
then
|
|
|
|
|
2016-03-02 23:24:44 +00:00
|
|
|
travis_retry ./scripts/e2e-test.sh
|
2016-02-11 14:16:34 +00:00
|
|
|
|
2016-02-10 15:04:48 +00:00
|
|
|
else
|
|
|
|
echo "Unknown test type: $TEST_TYPE"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- TEST_TYPE=objc
|
|
|
|
- TEST_TYPE=js
|
2016-03-02 23:24:44 +00:00
|
|
|
- TEST_TYPE=e2e-objc
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^.*-stable$/
|