-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (46 loc) · 1.33 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
os: linux
sudo: false
language: android
jdk: oraclejdk8
dist: trusty
android:
components:
- tools
- platform-tools
- tools
- build-tools-26.0.2
- android-28
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
licenses:
- "android-sdk-preview-license-52d11cd2"
- "android-sdk-license-.+"
- "google-gdk-license-.+"
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
before_install:
- yes | sdkmanager "platforms;android-28"
- nvm install v12
- npm install -g ionic cordova
- npm i -g cordova-res
script:
- git clone https://github.com/alxsmora1/ionic4-example-background-geolocation.git demo/
- cd demo/
- npm install
- ionic integrations enable cordova --add
- ionic cordova plugin add @mauron85/cordova-plugin-background-geolocation
- npm install @ionic-native/background-geolocation
- ionic cordova platform add android
- cd platforms/android/app/src/main/res
- cp -r mipmap-hdpi/ mipmap/
- cd mipmap/
- mv ic_launcher.png icon.png
- cd /home/travis/build/alxsmora1/ionic4-example-background-geolocation/demo/
- ionic cordova build android