-
Notifications
You must be signed in to change notification settings - Fork 23
/
.travis-android.yml
41 lines (36 loc) · 1.28 KB
/
.travis-android.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
sudo: false
language: node_js
node_js:
- "5.1"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- openjdk-7-jdk
- lib32stdc++6
- lib32z1
env:
CXX=g++-4.8
install:
- npm install -g gulp bower cordova ionic
- npm install
- bower update
before_script:
- wget http://dl.google.com/android/android-sdk_r24.4-linux.tgz
- tar -xvf android-sdk_r24.4-linux.tgz
- echo y | ./android-sdk-linux/tools/android update sdk --no-ui --all --filter platform-tools
- echo y | ./android-sdk-linux/tools/android update sdk --no-ui --all --filter build-tools-23.0.2
- echo y | ./android-sdk-linux/tools/android update sdk --no-ui --all --filter android-23
- echo y | ./android-sdk-linux/tools/android update sdk --no-ui --all --filter extra-android-support
- echo y | ./android-sdk-linux/tools/android update sdk --no-ui --all --filter extra-android-m2repository
- echo y | ./android-sdk-linux/tools/android update sdk --no-ui --all --filter extra-google-m2repository
- export ANDROID_HOME=$PWD/android-sdk-linux
- export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools/23.0.2
script:
- npm run build
- ionic platform remove android
- ionic platform add android
- ionic build android
- ionic info