forked from ptmt/react-native-macos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (47 loc) · 1.37 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
language: objective-c
matrix:
include:
- os: osx
osx_image: xcode8.2
env:
- TEST_TYPE=objc
- SDK_TO_TEST='macosx10.12'
- os: osx
osx_image: xcode7.3
env:
- TEST_TYPE=objc
- SDK_TO_TEST='macosx10.11'
- os: osx
osx_image: xcode6.4
env:
- TEST_TYPE=objc
- SDK_TO_TEST='macosx10.10'
- os: osx
osx_image: xcode6.4
env:
- TEST_TYPE=objc
- SDK_TO_TEST='macosx10.9'
- os: osx
env: TEST_TYPE=js
install:
- mkdir -p /Users/travis/build/facebook/.nvm
- export NVM_DIR="/Users/travis/build/facebook/.nvm"
- brew install nvm
- source $(brew --prefix nvm)/nvm.sh
# TODO npm 2 started stalling on Travis, t11852928
- nvm install 6
- rm -Rf "${TMPDIR}/jest_preprocess_cache"
- npm config set spin=false
- npm config set progress=false
- travis_wait npm install
- node --version
- npm --version
script:
- if [[ "$TEST_TYPE" = objc ]]; then travis_retry travis_wait ./scripts/objc-test.sh; fi
- if [[ "$TEST_TYPE" = e2e-objc ]]; then node ./scripts/run-ci-e2e-tests.js --macos --js --retries 3; fi
- if [[ "$TEST_TYPE" = js ]]; then npm run flow check; fi
- if [[ "$TEST_TYPE" = js ]]; then npm test -- --maxWorkers=1; fi
branches:
only:
- master
- /^.*-stable$/