forked from rongcloud/rongcloud-react-native-imlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
54 lines (49 loc) · 1.17 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
aliases:
- &android
components:
- build-tools-28.0.3
- android-28
- extra-android-m2repository
- extra-android-support
- &android-cache
directories:
- ~/.npm
- ~/.gradle/caches/modules-2
- ~/.gradle/wrapper
- &ios-cache
directories:
- ~/.npm
- ~/.rncache
- ~/Library/Caches/Yarn
jobs:
include:
- stage: "build test for example"
language: android
android: *android
before_cache:
- rm ~/.gradle/caches/modules-2/modules-2.lock
cache: *android-cache
script:
- nvm install node
- npm i
- npm i typescript
- npm run build
- cd android
- TERM=dumb ./gradlew build
- ls -lh app/build/outputs/apk/debug
- ls -lh app/build/outputs/apk/release
- stage: "build test for example"
language: objective-c
os: osx
osx_image: xcode11.3
cache: *ios-cache
before_install:
script:
- npm i
- npm i typescript
- npm run build
- cd ios && pod install && cd ..
- npm run run-ios
stages:
- name: "build test for example"
if: branch = master