forked from software-mansion/react-native-gesture-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
104 lines (91 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
96
97
98
99
100
101
102
103
matrix:
include:
- language: objective-c
osx_image: xcode9
xcode_sdk: iphonesimulator11.3
xcode_destination: platform=iOS Simulator,OS=11.3,name=iPhone 7
env: NODE_VERSION=10.11.0
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 --without-node
- npm install -g react-native-cli
- npm install -g detox-cli
- cd e2e
- yarn
- export PRODUCT_BUNDLE_IDENTIFIER="com.swmansion.rn_gesture_handler_example"
- FORCE_BUNDLING=1 detox build --configuration ios.sim.debug > /dev/null
# lines below was done in order to kill server run by build
# since we require to run server with custom config
- killall -9 node > /dev/null &
- yarn start --reset-cache &
script:
- detox test -d --no-color --configuration ios.sim.debug --cleanup
- language: android
sudo: required
jdk: oraclejdk8
env: NODE_VERSION=10.11.0
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-27.0.3
install:
- yes | sdkmanager "platforms;android-26"
- 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
- npm install -g detox-cli
- cd Example
- yarn
script:
- cd ./android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug
- language: objective-c
osx_image: xcode9
xcode_sdk: iphonesimulator11.3
xcode_destination: platform=iOS Simulator,OS=11.3,name=iPhone 7
env: NODE_VERSION=10.11.0
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 --without-node
- npm install -g react-native-cli
- npm install -g detox-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