Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Travis build support #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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

7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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).

Expand Down
1 change: 1 addition & 0 deletions travis/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
android-ndk-*
11 changes: 11 additions & 0 deletions travis/install-dependencies.sh
Original file line number Diff line number Diff line change
@@ -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"