From 0a551da9f8dcc2d61cd53201b5f913345ba67737 Mon Sep 17 00:00:00 2001 From: Frederik Carlier Date: Sun, 10 Jan 2016 21:59:42 +0100 Subject: [PATCH] Add Travis build support --- .travis.yml | 22 ++++++++++++++++++++++ README.md | 7 ++++++- travis/.gitignore | 1 + travis/install-dependencies.sh | 11 +++++++++++ 4 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 .travis.yml create mode 100644 travis/.gitignore create mode 100755 travis/install-dependencies.sh diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..15ce85f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +env: + global: + - ANDROID_NDK_VERSION=r10e + - ANDROID_NDK_HOME=${TRAVIS_BUILD_DIR}/travis/android-ndk-${ANDROID_NDK_VERSION} + - PATH=${PATH}:${ANDROID_NDK_HOME} + +install: + - ./travis/install-dependencies.sh + +script: + - $ANDROID_NDK_HOME/ndk-build + +after_success: + - tar -zcvf minitouch.tar.gz -C libs . + +deploy: + provider: releases + file: minitouch.tar.gz + skip_cleanup: true + on: + tags: true + diff --git a/README.md b/README.md index 74fdc25..6e4fd2e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,11 @@ # minitouch +[![Build +Status](https://travis-ci.org/quamotion/minitouch.svg?branch=features%2Ftravis)](https://travis-ci.org/quamotion/minitouch) -Minitouch provides a socket interface for triggering multitouch events and gestures on Android devices. It works without root if started via [ADB](http://developer.android.com/tools/help/adb.html) on SDK 21 or lower. The sole exception is SDK 20 (Android Wear), which does require root. The lowest SDK level we test is 10 (i.e. Android 2.3.3). +Minitouch provides a socket interface for triggering multitouch events and gestures on Android devices. It +works without root if started via [ADB](http://developer.android.com/tools/help/adb.html) on SDK 21 or lower. +The sole exception is SDK 20 (Android Wear), which does require root. The lowest SDK level we test is 10 +(i.e. Android 2.3.3). It works especially well with HTML5 multitouch events, and unlike the Android [monkey](http://developer.android.com/tools/help/monkey.html) tool, allows you to access the whole screen (including any software buttons). diff --git a/travis/.gitignore b/travis/.gitignore new file mode 100644 index 0000000..e97e9c4 --- /dev/null +++ b/travis/.gitignore @@ -0,0 +1 @@ +android-ndk-* diff --git a/travis/install-dependencies.sh b/travis/install-dependencies.sh new file mode 100755 index 0000000..5f0b124 --- /dev/null +++ b/travis/install-dependencies.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Download and install the NDK +wget http://dl.google.com/android/ndk/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.bin -O travis/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.bin +chmod +x travis/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.bin +./travis/android-ndk-${ANDROID_NDK_VERSION}-linux-x86_64.bin -otravis/ -y > /dev/null + +# Dump the environment variables +echo "ANDROID_NDK_HOME set to $ANDROID_NDK_HOME" +echo "PATH set to $PATH" +