forked from software-mansion/react-native-reanimated
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (83 loc) · 2.74 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
os: linux
language: node_js
dist: xenial
jobs:
include:
- language: android
jdk: openjdk8
env:
- NODE_VERSION=10.15.3
- ANDROID_API=29
- ANDROID_BUILD_TOOLS=29.0.2
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.cache/yarn/
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
android:
components:
- tools
- platform-tools
- android-${ANDROID_API}
- build-tools-${ANDROID_BUILD_TOOLS}
before_install:
- yes | sdkmanager "ndk-bundle" > /dev/null
- yes | sdkmanager "ndk;21.2.6472646" > /dev/null
- yes | sdkmanager "cmake;3.10.2.4988404" > /dev/null
install:
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- nvm alias default $NODE_VERSION
- node --version
- npm install -g yarn --ignore-dependencies
- npm install -g react-native-cli
- yarn
- cd Example
- yarn
before_script:
- export ANDROID_NDK_ROOT=$ANDROID_HOME/ndk-bundle
- export ANDROID_NDK_HOME=$ANDROID_NDK_ROOT
script:
- cd ./android &&./gradlew assembleDebug --console=plain
- language: objective-c
os: osx
xcode_workspace: './ios/ReanimatedExample.xcworkspace'
xcode_scheme: ReanimatedExample
xcode_sdk: iphonesimulator9.0
osx_image: xcode10.1
podfile: './ios/Podfile'
xcode_destination: platform=iOS Simulator,OS=11.4,name=iPhone X
env: NODE_VERSION=10.15.3
branches:
only:
- master
cache: yarn
install:
- nvm --version
- echo $NODE_VERSION
- xcodebuild -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
- cd ios && pod install && cd ..
script:
- xcodebuild -workspace ./ios/ReanimatedExample.xcworkspace -scheme ReanimatedExample -configuration Debug -sdk iphonesimulator -derivedDataPath ./ios/build -quiet | egrep '^(/.+:[0-9+:[0-9]+:.error:|fatal|===)' || [[ $? == 1 ]] | uniq && exit ${PIPESTATUS[0]}
- language: node_js
node_js:
- 10
cache:
directories:
- node_modules
script:
- yarn
- yarn tsc react-native-reanimated.d.ts react-native-reanimated-tests.tsx --noEmit --lib 'es6' --jsx 'react-native' --esModuleInterop
- yarn test