forked from bugsnag/bugsnag-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (70 loc) · 2.19 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
jobs:
include:
- stage: test
language: node_js
node_js:
- "10"
install: npm install
script: npm run test:lint:js && npm run test:unit:js && npm run test:smoke:typescript
- stage: build
language: android
android:
components:
- tools
- platform-tools
- build-tools-26.0.2
- android-26
- extra-google-m2repository
- extra-android-m2repository
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
env:
- ANDROID_TARGET=android-26 ANDROID_ABI=armeabi-v7a
- ADB-INSTALL_TIMEOUT=5
before_install:
- yes | sdkmanager "platforms;android-26"
- yes | sdkmanager "platforms;android-23"
install:
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
- sudo apt-get install -y nodejs
before_script:
- npm install
- npm install babel-cli
- PATH="node_modules/bin:$PATH" && npm pack
script:
- cd examples/plain
- yarn add ../../bugsnag-react-native-*.tgz
- yarn install
- ./node_modules/.bin/react-native link
- cd android
- ./gradlew assembleRelease
licenses:
-
- stage: build
language: objective-c
os: osx
osx_image: xcode10
cache:
- bundler
- cocoapods
xcode_project: ./cocoa/BugsnagReactNative.xcodeproj
xcode_scheme: BugsnagReactNative
install:
- brew install yarn
before_script:
- npm install
- npm install babel-cli
- PATH="node_modules/bin:$PATH" && npm pack
script:
- cd examples/plain
- yarn add ../../bugsnag-react-native-*.tgz
- yarn install
- ./node_modules/.bin/react-native link
- cd ios
- xcodebuild -project BugsnagReactNativeExample.xcodeproj -scheme BugsnagReactNativeExample build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -UseModernBuildSystem=NO -quiet