Skip to content
Closed
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
53 changes: 53 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
language: android

branches:
only:
- master

sudo: true

jdk:
- oraclejdk8

dist : trusty # otherwise you run into /home/travis/.travis/functions: line 104: sdkmanager: command not found

env:
- TERM=dumb

global:
- PATH=$ANDROID_HOME:$ANDROID_HOME/platform-tools:$PATH

android:
components:
- tools
- platform-tools
- android-27

install:
- echo $ANDROID_HOME # We assume this is correctly set when setting path
- sdkmanager --list || true # Look at the packages
- echo yes | sdkmanager "tools" # Ensure tools is updated
- echo y | sdkmanager 'ndk-bundle' 1>/dev/null
- echo y | sdkmanager 'cmake;3.6.4111459' 1>/dev/null
- echo y | sdkmanager 'lldb;3.0' 1>/dev/null

before_script:
- wget --quiet https://dl.google.com/android/repository/android-ndk-r15c-linux-x86_64.zip
- unzip -q android-ndk-r15c-linux-x86_64.zip
- export ANDROID_NDK_ROOT=`pwd`/android-ndk-r15c
- PATH=${PATH}:$ANDROID_NDK_ROOT

script:
- set -o pipefail
- make init
- make build-release
- set +o pipefail

before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/

cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ check:
$(GRADLE) check

build-debug: check
$(GRADLE) android-database-sqlcipher:bundleDebugAar \
-PdebugBuild=true
TERM=dumb $(GRADLE) android-database-sqlcipher:bundleDebugAar \
-PdebugBuild=true --stacktrace

build-release: check
$(GRADLE) android-database-sqlcipher:bundleReleaseAar \
-PdebugBuild=false
-PdebugBuild=false --stacktrace

publish-local-snapshot:
@ $(collect-signing-info) \
Expand Down