Skip to content
Snippets Groups Projects
Commit 49564d1e authored by John Carlson's avatar John Carlson
Browse files

Try out android-sdk-installer

parent 8a05b564
No related branches found
No related tags found
No related merge requests found
Pipeline #
#Derived from https://about.gitlab.com/2016/11/30/setting-up-gitlab-ci-for-android-projects/
image: openjdk:8-jdk
variables:
ANDROID_COMPILE_SDK: "25"
ANDROID_BUILD_TOOLS: "25.0.3"
ANDROID_SDK_TOOLS: "25.2.3"
image: commit451/android-sdk:latest
 
before_script:
- wget --quiet --output-document=android-sdk.zip https://dl.google.com/android/repository/tools_r${ANDROID_SDK_TOOLS}-linux.zip
- unzip -q android-sdk.zip -d android-sdk
- export ANDROID_HOME=$PWD/android-sdk
- echo y | $ANDROID_HOME/tools/bin/sdkmanager "platforms;android-$ANDROID_COMPILE_SDK"
- echo y | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;$ANDROID_BUILD_TOOLS"
- android-sdk-installer
 
stages:
- build
Loading
Loading
@@ -25,4 +15,4 @@ build:
test:
stage: test
script:
- ./gradlew testFdroidDebug
\ No newline at end of file
- ./gradlew testFdroidDebug
language: android
language: java
env:
- ANDROID_HOME=$PWD/android-sdk
 
jdk:
- oraclejdk8
 
android:
components:
- platform-tools
- tools
- build-tools-25.0.3
- android-25
- extra-android-m2repository
- extra-google-m2repository
before_install:
- rvm install 2.3.4
- gem install android-sdk-installer
- android-sdk-installer -i
 
script: "./gradlew testFdroidDebug"
debug: true
components:
- build-tools;25.0.3
- platforms;android-25
- extras;google;m2repository
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment