Skip to content

Commit

Permalink
Add Android build to .travis.yml.
Browse files Browse the repository at this point in the history
  • Loading branch information
Veikko Soininen committed Oct 15, 2018
1 parent f70a53c commit ad06993
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 22 deletions.
47 changes: 34 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,34 @@
language: c

script:
- make
- make release
- make clean

before_install:
- sudo apt-get install -y libsdl2-dev --no-install-suggests --no-install-recommends

compiler:
- clang
- gcc
matrix:
include:
- language: c
before_script:
- sudo apt-get install -y libsdl2-dev --no-install-suggests --no-install-recommends
script:
- make
- make release
- make clean
compiler: clang
- language: c
before_script:
- sudo apt-get install -y libsdl2-dev --no-install-suggests --no-install-recommends
script:
- make
- make release
- make clean
compiler: gcc
- language: android
jdk: oraclejdk8
android:
components:
- tools
- android-26
- build-tools-26.1.1
install:
- echo y | sdkmanager "ndk-bundle"
before_script:
- export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
- cd android/ChesterApp
- chmod +x ./gradlew
- yes | sdkmanager "platforms;android-27"
script:
- ./gradlew build
6 changes: 1 addition & 5 deletions android/ChesterApp/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ android {
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
cppFlags += "-I" + file("../../../src/lib").absolutePath
Expand All @@ -32,8 +31,5 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
}
3 changes: 1 addition & 2 deletions android/ChesterApp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.0-alpha08'

classpath 'com.android.tools.build:gradle:3.2.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion android/ChesterApp/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx1536m
org.gradle.jvmargs=-XX\:MaxHeapSize\=256m -Xmx256m
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip

0 comments on commit ad06993

Please sign in to comment.