forked from dotintent/MultiPlatformBleAdapter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
49 lines (46 loc) · 1.04 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
stages:
- name: self-test
if: type = push
- name: integration
if: branch = master OR type = pull_request
_android_job_template: &android_job_template
language: android
android:
components:
- tools
- build-tools-28.0.3
- android-28
- extra-android-m2repository
licenses:
- 'android-sdk-license-.+'
env:
global:
- GRADLE_OPTS="-Xms128m"
- ABI="default;armeabi-v7a"
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
directories:
- $HOME/.m2
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
script:
- cd android
- ./gradlew build
_ios_job_template: &ios_job_template
language: objective-c
os: osx
osx_image: xcode11
xcode_project: iOS/MultiPlatformBLEAdapter.xcodeproj
xcode_scheme: MultiplatformBLEAdapter
script:
- cd ios
- xcodebuild
matrix:
include:
- <<: *android_job_template
name: Build Android
stage: integration
- <<: *ios_job_template
name: Build iOS
stage: integration