mirror of
https://github.com/owncloud/android-library.git
synced 2025-06-07 16:06:08 +00:00
Merge pull request #167 from owncloud/update_android_tools
[WIP] Update Android tools
This commit is contained in:
commit
98eda17cba
51
.travis.yml
51
.travis.yml
@ -2,33 +2,40 @@ sudo: false
|
||||
language: android
|
||||
jdk:
|
||||
- oraclejdk8
|
||||
android:
|
||||
components:
|
||||
# first 'tools' updates SDK tools 'til last version ** in remote repository number 10 **
|
||||
- tools
|
||||
# second 'tools' updates SDK tools 'til last version ** in remote repository number 11 ** (current last one)
|
||||
- tools
|
||||
- platform-tools
|
||||
- build-tools-25.0.2
|
||||
- android-24
|
||||
- sys-img-armeabi-v7a-android-24
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
before_install:
|
||||
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
|
||||
-c 20M
|
||||
- emulator -avd test -no-window &
|
||||
install:
|
||||
# Let's use the new command 'sdkmanager' to install Android SDK components
|
||||
- yes | sdkmanager --verbose "build-tools;26.0.2"
|
||||
- yes | sdkmanager --verbose "platform-tools"
|
||||
- yes | sdkmanager --verbose "tools"
|
||||
- yes | sdkmanager --verbose "platforms;android-24"
|
||||
- yes | sdkmanager --verbose "system-images;android-24;default;armeabi-v7a"
|
||||
|
||||
# Check tools and dependencies installed
|
||||
- yes | sdkmanager --list
|
||||
|
||||
# After Travis updated image with Android base environment, building via ant is not possible anymore.
|
||||
# Library tests are old-style tests, and trust on legacy Android ant environment.
|
||||
# Need to disable tests until they are ported to JUnit 4 and gradle build.
|
||||
#- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI -c 20M
|
||||
#- emulator -avd test -no-window &
|
||||
- rm pom.xml
|
||||
- android update project -p .
|
||||
- chmod +x ./wait_for_emulator.sh
|
||||
- ./wait_for_emulator.sh
|
||||
#- android update project -p .
|
||||
#- chmod +x ./wait_for_emulator.sh
|
||||
#- ./wait_for_emulator.sh
|
||||
#
|
||||
# On the other hand, Travis still uses 'android' command behind the 'components' section update.
|
||||
# That command is obsolete and cannot update Android SDK Tools after 25.2.5.
|
||||
# Let's solve it here with the new command 'sdkmanager'
|
||||
- yes | sdkmanager --verbose tools
|
||||
script:
|
||||
- ant clean
|
||||
- ant debug
|
||||
- cd test_client/tests
|
||||
- ant acceptance-test
|
||||
- cd ../..
|
||||
#- ant clean
|
||||
#- ant debug
|
||||
#- cd test_client/tests
|
||||
#- ant acceptance-test
|
||||
#- cd ../..
|
||||
- ./gradlew clean build
|
||||
env:
|
||||
global:
|
||||
|
@ -19,7 +19,7 @@ dependencies {
|
||||
|
||||
android {
|
||||
compileSdkVersion 24
|
||||
buildToolsVersion '25.0.2'
|
||||
buildToolsVersion '26.0.2'
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
|
@ -10,7 +10,7 @@ dependencies {
|
||||
|
||||
android {
|
||||
compileSdkVersion 24
|
||||
buildToolsVersion "25.0.2"
|
||||
buildToolsVersion "26.0.2"
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
|
@ -12,7 +12,7 @@ dependencies {
|
||||
|
||||
android {
|
||||
compileSdkVersion 24
|
||||
buildToolsVersion "25.0.2"
|
||||
buildToolsVersion "26.0.2"
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
|
@ -7,7 +7,7 @@ dependencies {
|
||||
|
||||
android {
|
||||
compileSdkVersion 24
|
||||
buildToolsVersion "24.0.2"
|
||||
buildToolsVersion "26.0.2"
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
|
Loading…
x
Reference in New Issue
Block a user