Skip to content

Commit 9670517

Browse files
committedApr 23, 2016
Merge pull request #69 from HunkD/hunkd-upgrade-gradle
Upgrade gradle
2 parents 161d7a0 + b884005 commit 9670517

File tree

6 files changed

+64
-3
lines changed

6 files changed

+64
-3
lines changed
 

‎.travis.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
before_install:
2+
# Gradle
3+
- wget http://services.gradle.org/distributions/gradle-2.10-bin.zip
4+
- unzip gradle-2.10-bin.zip
5+
- export GRADLE_HOME=$PWD/gradle-2.10
6+
- export PATH=$GRADLE_HOME/bin:$PATH
7+
18
language: android
29
jdk: oraclejdk7
310

@@ -10,4 +17,17 @@ android:
1017
- extra-google-m2repository
1118
- extra-android-m2repository
1219

13-
script: gradle -b "NobankCore/build.gradle" -q clean :noBank:testDebugUnitTest assembleDebug -Pproguard
20+
before_script:
21+
- sudo service postgresql stop || true
22+
- sudo service mysql stop || true
23+
- sudo service memcached stop || true
24+
- sudo service bootlogd stop || true
25+
- sudo service elasticsearch stop || true
26+
- sudo service mongodb stop || true
27+
- sudo service neo4j stop || true
28+
- sudo service cassandra stop || true
29+
- sudo service riak stop || true
30+
- sudo service rsync stop || true
31+
- sudo service x11-common stop || true
32+
33+
script: gradle -b "NobankCore/build.gradle" -q clean :noBank:testDebugUnitTest jacocoTestReport assembleDebug -Pproguard -PtestCoverage

‎NobankCore/astub/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ android {
2525
"astub-${project.branchName}-v${variant.versionName}-b${project.buildNumber}-${variant.buildType.name}.apk".replaceAll("/", "-"))
2626
}
2727
}
28+
29+
dexOptions {
30+
maxProcessCount 4 // this is the default value
31+
javaMaxHeapSize "2g"
32+
}
2833
}
2934

3035
dependencies {

‎NobankCore/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ buildscript {
66
mavenCentral()
77
}
88
dependencies {
9-
classpath "com.android.tools.build:gradle:1.3.1"
9+
classpath "com.android.tools.build:gradle:2.0.0"
1010
}
1111
}
1212

‎NobankCore/gradle.properties

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#org.gradle.jvmargs=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5013
2+
3+
# For more details on how to configure your build environment visit
4+
# http://www.gradle.org/docs/current/userguide/build_environment.html
5+
6+
# The Gradle daemon aims to improve the startup and execution time of Gradle.
7+
# When set to true the Gradle daemon is to run the build.
8+
# TODO: disable daemon on CI, since builds should be clean and reliable on servers
9+
#org.gradle.daemon=true
10+
11+
# Specifies the JVM arguments used for the daemon process.
12+
# The setting is particularly useful for tweaking memory settings.
13+
# Default value: -Xmx10248m -XX:MaxPermSize=256m
14+
org.gradle.jvmargs=-Xms512m -Xmx1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
15+
16+
# When configured, Gradle will run in incubating parallel mode.
17+
# This option should only be used with decoupled projects. More details, visit
18+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
19+
org.gradle.parallel=true
20+
21+
# Enables new incubating mode that makes Gradle selective when configuring projects.
22+
# Only relevant projects are configured which results in faster builds for large multi-projects.
23+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:configuration_on_demand
24+
org.gradle.configureondemand=true
25+
26+
org.gradle.workers.max=4

‎NobankCore/noBank/build-library.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ android {
1515
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
1616
}
1717
}
18+
19+
dexOptions {
20+
maxProcessCount 4 // this is the default value
21+
javaMaxHeapSize "2g"
22+
}
1823
}
1924

2025
dependencies {

‎NobankCore/noBank/build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ android {
3131
debuggable true
3232
proguardFile getDefaultProguardFile('proguard-android-optimize.txt')
3333
proguardFile 'proguard.cfg'
34-
testCoverageEnabled true
34+
testCoverageEnabled project.hasProperty("testCoverage")? true : false
3535
}
3636
}
3737

@@ -46,6 +46,11 @@ android {
4646
lintOptions {
4747
abortOnError false
4848
}
49+
50+
dexOptions {
51+
maxProcessCount 4 // this is the default value
52+
javaMaxHeapSize "2g"
53+
}
4954
}
5055

5156
def coverageSourceDirs = [

0 commit comments

Comments
 (0)
Please sign in to comment.