2016-02-10 07:04:48 -08:00
|
|
|
language: objective-c
|
|
|
|
|
2016-10-07 10:06:28 -07:00
|
|
|
osx_image: xcode8
|
2016-02-10 07:04:48 -08:00
|
|
|
|
|
|
|
install:
|
2016-03-19 02:14:22 -07:00
|
|
|
- mkdir -p /Users/travis/build/facebook/.nvm
|
|
|
|
- export NVM_DIR="/Users/travis/build/facebook/.nvm"
|
2016-05-05 11:23:59 -07:00
|
|
|
- brew install nvm
|
2016-02-10 07:04:48 -08:00
|
|
|
- source $(brew --prefix nvm)/nvm.sh
|
2016-06-21 10:21:24 -07:00
|
|
|
# TODO npm 2 started stalling on Travis, t11852928
|
|
|
|
- nvm install 5
|
2016-02-10 07:04:48 -08:00
|
|
|
- rm -Rf "${TMPDIR}/jest_preprocess_cache"
|
2016-10-19 07:47:47 -07:00
|
|
|
- wget https://github.com/yarnpkg/yarn/releases/download/v0.16.0/yarn-0.16.0.js
|
|
|
|
- export yarn="node $(pwd)/yarn-0.16.0.js"
|
|
|
|
- $yarn install
|
2016-02-10 07:04:48 -08:00
|
|
|
|
|
|
|
script:
|
2016-10-16 15:37:45 -07:00
|
|
|
- if [[ "$TEST_TYPE" = objc-ios ]]; then travis_retry travis_wait ./scripts/objc-test-ios.sh; fi
|
2016-10-06 03:16:41 -07:00
|
|
|
- if [[ "$TEST_TYPE" = objc-tvos ]]; then travis_retry travis_wait ./scripts/objc-test-tvos.sh; fi
|
2016-04-25 07:15:25 -07:00
|
|
|
- if [[ "$TEST_TYPE" = e2e-objc ]]; then node ./scripts/run-ci-e2e-tests.js --ios --js --retries 3; fi
|
2016-12-30 18:30:57 -08:00
|
|
|
- if [[ "$TEST_TYPE" = e2e-objc-tvos ]]; then node ./scripts/run-ci-e2e-tests.js --tvos --retries 3; fi
|
2016-03-19 02:14:22 -07:00
|
|
|
- if [[ "$TEST_TYPE" = js ]]; then npm run flow check; fi
|
2016-03-18 08:09:20 -07:00
|
|
|
- if [[ "$TEST_TYPE" = js ]]; then npm test -- --maxWorkers=1; fi
|
2017-02-06 16:16:46 -08:00
|
|
|
- if [[ ( "$TEST_TYPE" = podspecs ) && ( "$TRAVIS_PULL_REQUEST" = "false" ) ]]; then gem install cocoapods && ./scripts/process-podspecs.sh; fi
|
2016-02-10 07:04:48 -08:00
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
2016-12-30 18:30:57 -08:00
|
|
|
- TEST_TYPE=e2e-objc-tvos
|
2016-03-02 15:24:44 -08:00
|
|
|
- TEST_TYPE=e2e-objc
|
2016-10-16 15:37:45 -07:00
|
|
|
- TEST_TYPE=objc-ios
|
2016-10-06 03:16:41 -07:00
|
|
|
- TEST_TYPE=objc-tvos
|
2016-04-13 08:18:49 -07:00
|
|
|
- TEST_TYPE=js
|
2017-02-06 16:16:46 -08:00
|
|
|
- TEST_TYPE=podspecs
|
2016-02-10 07:04:48 -08:00
|
|
|
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- /^.*-stable$/
|
2016-03-03 09:50:52 -08:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
email:
|
|
|
|
recipients:
|
2016-12-12 06:43:59 -08:00
|
|
|
- mkonicek@fb.com
|
2017-02-10 13:17:56 -08:00
|
|
|
- eloy@artsy.net
|
2016-03-03 09:50:52 -08:00
|
|
|
on_failure: change
|
|
|
|
on_success: change
|
2017-02-22 15:51:00 -08:00
|
|
|
slack:
|
|
|
|
secure: oQL2C966v7/DtxNqfM7WowjY0R5mgLHR2qHkoucwK5iVrmaptnHr8fq01xlj7VT0kDwNLqT3n4+gtCviGw89lq71m3W76c8Pms/10jpjw+LwAfQPVizNw/Bx8MFNNmjDauK/auFxaybiLZupi7zd4xFGOZvScmFdfD4CAAp2OOA=
|