forked from rnmapbox/maps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
86 lines (84 loc) · 3.03 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
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-mapbox-gl/
- 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-mapbox-gl/
- 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
- echo $MAPBOX_ACCESS_TOKEN > ./accesstoken
- find node_modules -name ".git" -exec rm -r "{}" \; || true
- rm -rf example/node_modules/\@react-native-mapbox-gl/
- 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 ./RNMapboxGLExample.xcworkspace -scheme RNMapboxGLExample | xcpretty -c
fi
- |
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
cd $TRAVIS_BUILD_DIR/example/android
TERM=dumb ./gradlew assemble
fi
- cd $TRAVIS_BUILD_DIR
- yarn global add -g '[email protected]'
- yarn install
- yarn run unittest
- yarn run generate
deploy:
provider: npm
email: [email protected]
api_key:
secure: B2hTPnT+8dWEbpBc8c2/8rwlmha8iVkRXzj88W+bgsg3k1c+tX+fNTJtbHqtahMuLfkBn6iSxfL9Bv70pXUSkdjyArlE7QdddzMx6UOO9vjoReuh1lyWNTHDx2u9iOSFYX1zsEJrf6wXkfhAtrBqF/tg2pu2NdHcaTy9grhPGnQgFpVCYKrQ67uoursqavd0nUiXVAteLH12zo0Nn1LhchogWA6CZPzz5PNgOv/KuiGIt/fmcg/Y7nlwI5BL0R29MmTIDR33tP509lFwyFTgqY/Xv4jWy0Miw+r0WQFYllkncj6dpuJ7FTdmOMfwL5vJX7B+kpZAtiBlXWtuIetRAfa/1KIWqeSIAYZTNFoEOymOXQM6DWklB3guGkAMnXNZslUvUevPzAY4SUL5fcoD+3FO8H4VAm328+hCtQWkyZbNLrU4X1FHd3BVY19YiHONHLGND9jzyzM/z0JocV0VG5azaIpPQDFVOjxhrWzTMAgwA+hNKtvQJegXIbW/sQJp12zPLv0dHJuIKjwXrnQtlSdr8JResHPFcLScuAWJ4QTSU2khcn0Ul5RnhCSGD3ic45nt46AzABqBhD6rMLesH+gbJ/i9v3LbiU7+r5JSTPfZ4ntJs168AeXy27hnWck54OjKIHp6JZ25jbJwTRCEZH1i7ETYKcheyTRR4sDiUxI=
on:
tags: true
repo: react-native-mapbox-gl/maps
branch: master