2016-02-10 15:04:48 +00:00
|
|
|
language: objective-c
|
|
|
|
|
2016-04-16 08:24:18 +00:00
|
|
|
osx_image: xcode7.3
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
install:
|
2016-03-19 09:14:22 +00:00
|
|
|
- mkdir -p /Users/travis/build/facebook/.nvm
|
|
|
|
- export NVM_DIR="/Users/travis/build/facebook/.nvm"
|
2016-02-10 15:04:48 +00:00
|
|
|
- source $(brew --prefix nvm)/nvm.sh
|
2016-03-18 15:09:20 +00:00
|
|
|
# testing with npm@2 for diversity, Circle tests with npm@3
|
2016-04-23 06:03:12 +00:00
|
|
|
- nvm install 4.4.3
|
2016-02-10 15:04:48 +00:00
|
|
|
- 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:
|
2016-03-18 15:09:20 +00:00
|
|
|
- if [[ "$TEST_TYPE" = objc ]]; then travis_retry ./scripts/objc-test.sh; fi
|
2016-04-25 14:15:25 +00:00
|
|
|
- if [[ "$TEST_TYPE" = e2e-objc ]]; then node ./scripts/run-ci-e2e-tests.js --ios --js --retries 3; fi
|
2016-03-19 09:14:22 +00:00
|
|
|
- if [[ "$TEST_TYPE" = js ]]; then npm run flow check; fi
|
2016-03-18 15:09:20 +00:00
|
|
|
- if [[ "$TEST_TYPE" = js ]]; then npm test -- --maxWorkers=1; fi
|
2016-02-10 15:04:48 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
2016-03-02 23:24:44 +00:00
|
|
|
- TEST_TYPE=e2e-objc
|
2016-04-06 10:42:27 +00:00
|
|
|
- TEST_TYPE=objc
|
2016-04-13 15:18:49 +00:00
|
|
|
- TEST_TYPE=js
|
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
|