Added Travis CI support.
This commit is contained in:
parent
c8f0df35fa
commit
37044eea4c
|
@ -0,0 +1,17 @@
|
|||
language: android
|
||||
|
||||
android:
|
||||
components:
|
||||
- build-tools-21.1.0
|
||||
- extra-android-m2repository
|
||||
- android-8
|
||||
- android-16
|
||||
- android-21
|
||||
env:
|
||||
matrix:
|
||||
- ANDROID_SDKS=android-8 ANDROID_TARGET=android-8 ANDROID_ABI=armeabi
|
||||
- ANDROID_SDKS=android-16 ANDROID_TARGET=android-16 ANDROID_ABI=armeabi-v7a
|
||||
- ANDROID_SDKS=android-21 ANDROID_TARGET=android-21 ANDROID_ABI=x86
|
||||
|
||||
script: "./gradlew build"
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
# syncthing-android
|
||||
|
||||
[![current build status](https://travis-ci.org/Nutomic/syncthing-android.svg?branch=master)](https://travis-ci.org/Nutomic/syncthing-android)
|
||||
[![tip for next commit](https://tip4commit.com/projects/914.svg)](https://tip4commit.com/github/Nutomic/syncthing-android)
|
||||
|
||||
A wrapper of [syncthing](https://github.com/syncthing/syncthing) for Android.
|
||||
|
|
|
@ -9,7 +9,8 @@ if [ ! -f "ext/syncthing/src/github.com/syncthing/syncthing/.git" ]; then
|
|||
git submodule update --init --recursive
|
||||
fi
|
||||
|
||||
# Use own Go instance, installing it if missing.
|
||||
# Check for GOLANG installation
|
||||
if [ -z $GOROOT ] || [[ $(go version) != go\ version\ go1.3.3* ]] ; then
|
||||
mkdir -p "build"
|
||||
tmpgo='build/go'
|
||||
if [ ! -f "$tmpgo/bin/go" ]; then
|
||||
|
@ -30,6 +31,7 @@ if [ ! -f "$tmpgo/bin/go" ]; then
|
|||
fi
|
||||
# Add GO to the environment
|
||||
export GOROOT="$(pwd)/$tmpgo"
|
||||
fi
|
||||
|
||||
# Add GO compiler to PATH
|
||||
export PATH=$PATH:$GOROOT/bin
|
||||
|
|
Loading…
Reference in New Issue