The wercker/android
box runs on ubuntu 12.04 and provides a selection of the Android toolchain:
- gradle 2.10
- android sdk version 24.1.2
- android build tools 21.1.2 and 22.0.1
- android API 21 (android 5.0), API 22(android 5.1)
- sys image 22 (emulators)
- android support library
- google play service repository
The box also inherits tools from a not yet official java box, resulting in the following additional tools:
- oracle java 7
- ant and ivy
- maven
A typical android application can use the following yaml:
box: wercker/android
# Build definition
build:
# The steps that will be executed on build
steps:
- script:
name: show base information
code: |
gradle -v
echo $ANDROID_HOME
echo $ANDROID_BUILD_TOOLS
echo $ANDROID_UPDATE_FILTER
# A step that executes `gradle build` command
- script:
name: run gradle
code: |
gradle --full-stacktrace -q --project-cache-dir=$WERCKER_CACHE_DIR build
There are a number of environment varaibles declared for your information:
- ANDROID_SDK_VERSION : version of the sdk
- ANDROID_BUILD_TOOLS : which versions of the build tools are installed.
- ANDROID_UPDATE_FILTER : shows all sdk elements which are installed
- update sdk version and upgraded gradle version added additional android-22 tools
- Getting started with android and wercker - part 1
- Getting started with android and wercker - part 2
- Getting started with android and wercker - part 3
- Getting started with android and wercker - part 4
- Autoincrement versioning for android
The MIT License (MIT)
Copyright (c) 2013 wercker
- added android-22 tools.
- updated Android SDK to 24.1.2
- updated Android Build Tools to 22.0.1
- updated emulator sys-image to 22 (from 19)
- dropped build tools 19.1.0 & 20 (box size restrictions)
- dropped android-19, android-20 (box size restrictions)
- install additional android-20, android-21 tools.
- dropped build tools 18.0.1 and 19.0.3 (box size restrictions)
- dropped Android api level 18 (box size restrictions)
- updated gradle to 2.2.1
- updated Android SDK to 24.0.2
- updated Android Build Tools to 21.1.2
- updated gradle to 2.2
- upgraded android sdk version to 23.0.5
- updated gradle to 2.1
- google play service repository added
- updated gradle to 1.12
- updated Android SDK to 23
- add android buildtools 19.1.0
- updated gradle to 1.11
- android buildtools 19.0.1 updated to 19.0.3
- updated gradle to 1.9
- android tools 19 updated to 19.0.1 (Android 4.4.2)
- dropped: android build tools 17, 18 and android 17 api, system image for level 18 (reason: box size)
- sys image 18
- sys image 19
- android sdk version bumped to 22.2.1
- build tools release 19 added (Android 4.4)
- switched to gradle 1.8
- $ added for environment variables in the default wercker.yml
- expanded readme.
- ANDROID_SDK_VERSION environment variable added
- initial release