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
|
# 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)
|
[![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.
|
A wrapper of [syncthing](https://github.com/syncthing/syncthing) for Android.
|
||||||
|
|
|
@ -9,10 +9,11 @@ if [ ! -f "ext/syncthing/src/github.com/syncthing/syncthing/.git" ]; then
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use own Go instance, installing it if missing.
|
# Check for GOLANG installation
|
||||||
mkdir -p "build"
|
if [ -z $GOROOT ] || [[ $(go version) != go\ version\ go1.3.3* ]] ; then
|
||||||
tmpgo='build/go'
|
mkdir -p "build"
|
||||||
if [ ! -f "$tmpgo/bin/go" ]; then
|
tmpgo='build/go'
|
||||||
|
if [ ! -f "$tmpgo/bin/go" ]; then
|
||||||
# Download GOLANG v1.3.3
|
# Download GOLANG v1.3.3
|
||||||
wget -O go.src.tar.gz https://golang.org/dl/go1.3.3.src.tar.gz
|
wget -O go.src.tar.gz https://golang.org/dl/go1.3.3.src.tar.gz
|
||||||
sha1=$(sha1sum go.src.tar.gz)
|
sha1=$(sha1sum go.src.tar.gz)
|
||||||
|
@ -27,9 +28,10 @@ if [ ! -f "$tmpgo/bin/go" ]; then
|
||||||
pushd $tmpgo/src
|
pushd $tmpgo/src
|
||||||
./make.bash --no-clean
|
./make.bash --no-clean
|
||||||
popd
|
popd
|
||||||
|
fi
|
||||||
|
# Add GO to the environment
|
||||||
|
export GOROOT="$(pwd)/$tmpgo"
|
||||||
fi
|
fi
|
||||||
# Add GO to the environment
|
|
||||||
export GOROOT="$(pwd)/$tmpgo"
|
|
||||||
|
|
||||||
# Add GO compiler to PATH
|
# Add GO compiler to PATH
|
||||||
export PATH=$PATH:$GOROOT/bin
|
export PATH=$PATH:$GOROOT/bin
|
||||||
|
|
Loading…
Reference in New Issue