forked from olofd/react-native-photos-framework
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
31 lines (25 loc) · 773 Bytes
/
.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
language: objective-c
osx_image: xcode8.2
install:
- nvm use 6.9.1
- wget https://github.com/yarnpkg/yarn/releases/download/v0.18.1/yarn-0.18.1.js
- export yarn="node $(pwd)/yarn-0.18.1.js"
- $yarn install
- cd example && $yarn install && cd ..
script:
- if [[ "$TEST_TYPE" = objc-ios ]]; then set -o pipefail && xcodebuild test -verbose -project example/ios/Example.xcodeproj -scheme Example -destination 'id=E40727B3-41FB-4D6E-B4CB-BFA87109EB12' | xcpretty; fi
- if [[ "$TEST_TYPE" = js ]]; then npm test -- --maxWorkers=1; fi
env:
matrix:
- TEST_TYPE=objc-ios
- TEST_TYPE=js
branches:
only:
- master
- /^.*-stable$/
notifications:
email:
recipients:
on_failure: change
on_success: change