From 05f4f6ed924a446208badefce7a407e8ef6f6556 Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Tue, 13 Sep 2016 10:19:01 +0200 Subject: [PATCH] Set up a basic travis CI build. --- .gitignore | 1 + .travis.yml | 9 +++++++++ gradlew | 2 +- gradlew.bat | 2 +- 4 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore index e41c607e..a6548f84 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ !gradlew.bat !build.gradle !gradle.properties +!.travis.yml # include markdowns !README.md diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..34837ade --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: java + +# Disable the install step because gradlew assemble would actually run the entirety of the build +install: true + +script: ./gradlew setupCiWorkspace build + +jdk: + - oraclejdk8 diff --git a/gradlew b/gradlew index 91a7e269..fc5e5c06 100755 --- a/gradlew +++ b/gradlew @@ -7,7 +7,7 @@ ############################################################################## # Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS="" +DEFAULT_JVM_OPTS="-Xmx2G" APP_NAME="Gradle" APP_BASE_NAME=`basename "$0"` diff --git a/gradlew.bat b/gradlew.bat index a844ad2f..a846e3f7 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -9,7 +9,7 @@ if "%OS%"=="Windows_NT" setlocal @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx4g" +set DEFAULT_JVM_OPTS="-Xmx2G" set DIRNAME=%~dp0 if "%DIRNAME%" == "" set DIRNAME=.