54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
language: android
|
|
|
|
jdk:
|
|
- oraclejdk8
|
|
|
|
env:
|
|
global:
|
|
- NDK_VERSION=r15b
|
|
- NDK_CCACHE=ccache
|
|
- GOROOT_BOOTSTRAP=$GOROOT
|
|
- ANDROID_NDK_HOME=$HOME/.android/android-ndk-${NDK_VERSION}
|
|
- SBTPATH=$HOME/.sbt
|
|
- PATH=${ANDROID_NDK_HOME}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH}
|
|
|
|
scala:
|
|
- 2.11.11
|
|
|
|
before_cache:
|
|
- find $HOME/.sbt -name "*.lock" | xargs rm
|
|
- find $HOME/.ivy2 -name "*.lock" | xargs rm
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/.ivy2
|
|
- $HOME/.sbt
|
|
|
|
android:
|
|
components:
|
|
- tools
|
|
- build-tools-26.0.0
|
|
- extra-android-m2repository
|
|
- extra-google-m2repository
|
|
|
|
install:
|
|
- >
|
|
if [ ! -d "$ANDROID_NDK_HOME" ]; then
|
|
mkdir -p $ANDROID_NDK_HOME;
|
|
pushd $HOME/.android;
|
|
export ARCH=`uname -m`;
|
|
wget -q http://dl.google.com/android/repository/android-ndk-${NDK_VERSION}-linux-${ARCH}.zip;
|
|
unzip -q android-ndk-${NDK_VERSION}-linux-${ARCH}.zip;
|
|
popd;
|
|
fi
|
|
- >
|
|
if [ ! -f "$SBTPATH/sbt" ]; then
|
|
pushd $SBTPATH;
|
|
wget -q https://raw.githubusercontent.com/paulp/sbt-extras/master/sbt;
|
|
chmod a+x sbt;
|
|
popd;
|
|
fi
|
|
|
|
script:
|
|
- $SBTPATH/sbt go-build android:package
|