forked from software-mansion/react-native-gesture-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
128 lines (117 loc) · 3.7 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
matrix:
include:
# Fix this config
# - language: objective-c
# os: osx
# osx_image: xcode12.2
# xcode_workspace: './e2e/ios/ExampleE2E.xcworkspace'
# xcode_scheme: ExampleE2E
# podfile: './e2e/ios/Podfile'
# xcode_sdk: iphonesimulator12.4
# xcode_destination: platform=iOS Simulator,OS=12.4,name=iPhone X
# env: NODE_VERSION=10.19.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 --ignore-dependencies
# - npm install -g react-native-cli
# - npm install -g detox-cli
# - yarn
# - cd ci/e2e
# - yarn
# - cd ios
# - pod install
# - cd ..
# - export PRODUCT_BUNDLE_IDENTIFIER="com.swmansion.rn_gesture_handler_example"
# - detox build -c ios.sim.release | xcpretty
# script:
# - detox test -c ios.sim.release --no-color --headless --cleanup
- language: android
dist: trusty
sudo: required
jdk: oraclejdk8
env: NODE_VERSION=12.13.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-29.0.2
- build-tools-28.0.3
- android-29
install:
- 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 examples/Example
- yarn
- yarn run jetify
script:
- cd ./android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug
- language: objective-c
os: osx
osx_image: xcode12.2
xcode_workspace: './Example/ios/Example.xcworkspace'
xcode_scheme: Example
podfile: './Example/ios/Podfile'
xcode_sdk: iphonesimulator12.2
xcode_destination: platform=iOS Simulator,OS=12.2,name=iPhone X
env: NODE_VERSION=12.13.0
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
- gem install cocoapods
- cd examples/Example
- yarn
- cd ios
- pod install
- cd ..
- export PRODUCT_BUNDLE_IDENTIFIER="com.swmansion.rn_gesture_handler_example"
script:
- xcodebuild -workspace ios/Example.xcworkspace -destination 'platform=iOS Simulator,OS=12.2,name=iPhone X' -scheme Example -parallelizeTargets -configuration Debug -derivedDataPath ios/build -UseModernBuildSystem=YES | xcpretty
- language: node_js
node_js:
- 12
cache:
directories:
- node_modules
script:
- yarn
- yarn tsc --noEmit
- yarn lint-check
- cd examples/Example
- yarn
- yarn tsc --noEmit
- yarn lint-check