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
|
|
|
|
|
|
|
|
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
|
2016-03-03 12:15:15 +00:00
|
|
|
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
|
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-03 20:42:22 +00:00
|
|
|
travis_retry ./scripts/e2e-test.sh --ios
|
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$/
|
2016-03-03 17:50:52 +00:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
|
|
|
- bestander@gmail.com
|
|
|
|
on_failure: change
|
|
|
|
on_success: change
|