-
Notifications
You must be signed in to change notification settings - Fork 167
/
.travis.yml
81 lines (79 loc) · 2.14 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
matrix:
include:
- language: android
jdk: oraclejdk8
before_install:
- nvm install 8
- echo yes | sdkmanager "platforms;android-28"
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
- export PATH=$HOME/.yarn/bin:$PATH
android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- tools
cache:
bundler: true
yarn: true
directories:
- example/node_modules
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
before_cache:
- rm -f example/node_modules/react-native-openalpr/
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
- os: osx
osx_image: xcode10.2
node_js: 8
cache:
bundler: true
yarn: true
cocoapods: true
directories:
- example/node_modules
- $HOME/Library/Caches/Homebrew
before_cache:
- rm -f example/node_modules/react-native-openalpr/
- brew cleanup
podfile: example/ios/Podfile
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
- export PATH=$HOME/.yarn/bin:$PATH
install:
- cd $TRAVIS_BUILD_DIR/example
- yarn install
- echo $TRAVIS_OS_NAME
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
cd $TRAVIS_BUILD_DIR/example/ios
pod install
pod update
gem install xcpretty
fi
script:
- |
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
cd $TRAVIS_BUILD_DIR/example/ios
set -o pipefail
rm -f build
xcodebuild -arch x86_64 -sdk iphonesimulator12.2 -workspace ./RNOpenALPRExample.xcworkspace -scheme RNOpenALPRExample | xcpretty -c
fi
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
cd $TRAVIS_BUILD_DIR/example/android
pwd
ls -la
chmod +x /.gradlew
TERM=dumb ./gradlew assemble
fi
deploy:
provider: npm
email: [email protected]
api_key:
secure: TO-BE-ADDED-LATER
on:
tags: true
repo: RobertSasak/react-native-openalpr
branch: master