Commit 95b54f83 authored by Max Lv's avatar Max Lv

add travis-ci scripts

parent 7203c6d0
before_install:
- ./travis-ci/setup.sh &> /dev/null
- export NDK_CCACHE=ccache
- export ARCH=`uname -m`
- export ANDROID_NDK_HOME=`pwd`/android-ndk-r10d
- export ANDROID_HOME=`pwd`/android-sdk-linux
- export PATH=${ANDROID_NDK_HOME}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools:${PATH}
- cp local.properties.travis local.properties
script:
- ./build.sh
- sbt android:package-release
#!/bin/bash
echo "deb http://dl.bintray.com/sbt/debian /" | sudo tee -a
/etc/apt/sources.list.d/sbt.list
sudo apt-get update
sudo apt-get install -y ccache sbt
export ARCH=`uname -m`
wget -q http://dl.google.com/android/android-sdk_r24.3.4-linux.tgz
tar xf android-sdk_r24.3.4-linux.tgz
echo "y" | android update sdk --filter
tools,platform-tools,build-tools-23.0.1,android-23,extra-google-m2repository
--no-ui -a
echo "y" | android update sdk --filter extra-android-m2repository --no-ui -a
wget -q http://dl.google.com/android/ndk/android-ndk-r10d-linux-${ARCH}.bin
chmod +x android-ndk-r10d-linux-${ARCH}.bin
./android-ndk-r10d-linux-${ARCH}.bin -y &> /dev/null
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment