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