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 script to build minicap #15

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 minicap.tar.gz -C libs .

deploy:
provider: releases
file: minicap.tar.gz
skip_cleanup: true
on:
tags: true

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# minicap
[![Build Status](https://travis-ci.org/quamotion/minicap.svg?branch=features%2Ftravis)](https://travis-ci.org/quamotion/minicap)

Minicap provides a socket interface for streaming realtime screen capture data out of Android devices. It is meant to be used as a component in a larger program and is therefore not immensely useful just by itself. For example, it is being used in [STF](https://github.com/openstf/stf) for remote control.

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"