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
|
language: android
|
||||||
jdk:
|
jdk:
|
||||||
- oraclejdk8
|
- 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:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
before_install:
|
install:
|
||||||
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
|
# Let's use the new command 'sdkmanager' to install Android SDK components
|
||||||
-c 20M
|
- yes | sdkmanager --verbose "build-tools;26.0.2"
|
||||||
- emulator -avd test -no-window &
|
- 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
|
- rm pom.xml
|
||||||
- android update project -p .
|
#- android update project -p .
|
||||||
- chmod +x ./wait_for_emulator.sh
|
#- chmod +x ./wait_for_emulator.sh
|
||||||
- ./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:
|
script:
|
||||||
- ant clean
|
#- ant clean
|
||||||
- ant debug
|
#- ant debug
|
||||||
- cd test_client/tests
|
#- cd test_client/tests
|
||||||
- ant acceptance-test
|
#- ant acceptance-test
|
||||||
- cd ../..
|
#- cd ../..
|
||||||
- ./gradlew clean build
|
- ./gradlew clean build
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
|
@ -19,7 +19,7 @@ dependencies {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 24
|
compileSdkVersion 24
|
||||||
buildToolsVersion '25.0.2'
|
buildToolsVersion '26.0.2'
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
|
@ -10,7 +10,7 @@ dependencies {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 24
|
compileSdkVersion 24
|
||||||
buildToolsVersion "25.0.2"
|
buildToolsVersion "26.0.2"
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
|
@ -12,7 +12,7 @@ dependencies {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 24
|
compileSdkVersion 24
|
||||||
buildToolsVersion "25.0.2"
|
buildToolsVersion "26.0.2"
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
|
@ -7,7 +7,7 @@ dependencies {
|
|||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 24
|
compileSdkVersion 24
|
||||||
buildToolsVersion "24.0.2"
|
buildToolsVersion "26.0.2"
|
||||||
|
|
||||||
sourceSets {
|
sourceSets {
|
||||||
main {
|
main {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user