forked from software-mansion/react-native-gesture-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
95 lines (85 loc) · 2.8 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
matrix:
include:
- language: objective-c
osx_image: xcode10.2
xcode_sdk: iphonesimulator12.2
xcode_destination: platform=iOS Simulator,OS=12.2,name=iPhone X
env: NODE_VERSION=10.15.3
branches:
only:
- master
cache: yarn
install:
- nvm --version
- echo $NODE_VERSION
- sudo launchctl limit maxfiles 2048 unlimited
- sudo ulimit -n 10000
- brew tap wix/brew
- brew install applesimutils
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- nvm alias default $NODE_VERSION
- brew install yarn --ignore-dependencies
- npm install -g react-native-cli
- npm install -g detox-cli
- yarn
- cd e2e
- yarn
- export PRODUCT_BUNDLE_IDENTIFIER="com.swmansion.rn_gesture_handler_example"
- detox build -c ios.sim.release > /dev/null
script:
- detox test -c ios.sim.release --no-color --headless --cleanup
- language: android
dist: trusty
sudo: required
jdk: oraclejdk8
env: NODE_VERSION=10.15.3
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.yarn-cache
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
install:
- yes | sdkmanager "platforms;android-28"
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- nvm alias default $NODE_VERSION
- node --version
- npm install -g yarn
- npm install -g react-native-cli
- cd Example
- yarn
script:
- cd ./android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug
- language: objective-c
osx_image: xcode10.2
xcode_sdk: iphonesimulator12.2
xcode_destination: platform=iOS Simulator,OS=11.3,name=iPhone X
env: NODE_VERSION=10.15.3
branches:
only:
- master
cache: yarn
install:
- nvm --version
- echo $NODE_VERSION
- sudo launchctl limit maxfiles 2048 unlimited
- sudo ulimit -n 10000
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- nvm alias default $NODE_VERSION
- brew install yarn --ignore-dependencies
- npm install -g react-native-cli
- cd Example
- yarn
- export PRODUCT_BUNDLE_IDENTIFIER="com.swmansion.rn_gesture_handler_example"
script:
- xcodebuild -project ./ios/GestureHandler.xcodeproj -scheme GestureHandler -configuration Debug -sdk iphonesimulator -derivedDataPath ./ios/build -UseModernBuildSystem=NO