File tree Expand file tree Collapse file tree 4 files changed +42
-1
lines changed Expand file tree Collapse file tree 4 files changed +42
-1
lines changed Original file line number Diff line number Diff line change
1
+ docker-container : &docker-container
2
+ plugins :
3
+ - docker#v3.8.0:
4
+ image : " wordpressmobile/android-build-image"
5
+ environment :
6
+ - " CI=true"
7
+
8
+ steps :
9
+ - label : " checkstyle"
10
+ << : *docker-container
11
+ command : |
12
+ cp gradle.properties-example gradle.properties
13
+ ./gradlew checkstyle
14
+ - label : " ktlint"
15
+ << : *docker-container
16
+ command : |
17
+ cp gradle.properties-example gradle.properties
18
+ ./gradlew ciktlint
19
+ - label : " detekt"
20
+ << : *docker-container
21
+ command : |
22
+ cp gradle.properties-example gradle.properties
23
+ ./gradlew WordPress:detekt
24
+ - label : " lint"
25
+ << : *docker-container
26
+ command : |
27
+ cp gradle.properties-example gradle.properties
28
+ ./gradlew lintWordpressVanillaRelease
Original file line number Diff line number Diff line change @@ -117,6 +117,8 @@ buildScan {
117
117
termsOfServiceAgree = ' yes'
118
118
tag ' CI'
119
119
publishAlways()
120
+ // Otherwise CI might shut down before it's uploaded
121
+ uploadInBackground = false
120
122
}
121
123
}
122
124
Original file line number Diff line number Diff line change 2
2
3
3
# These are the default Gradle properties for WordPress-Android
4
4
# Feel free to tweak them for your machine (e.g. change -Xmx value below)
5
- org.gradle.jvmargs=-Xmx1536m -XX:+HeapDumpOnOutOfMemoryError
5
+ org.gradle.jvmargs=-Xmx6g -XX:+HeapDumpOnOutOfMemoryError
6
6
org.gradle.parallel=true
7
7
org.gradle.configureondemand=true
8
8
org.gradle.caching=true
Original file line number Diff line number Diff line change @@ -79,3 +79,14 @@ if (localBuilds.exists()) {
79
79
}
80
80
}
81
81
82
+ // Build cache is only enabled for CI, at least for now
83
+ if (System . getenv(). containsKey(" CI" )) {
84
+ buildCache {
85
+ remote(HttpBuildCache ) {
86
+ url = " http://10.0.2.215:5071/cache/"
87
+ allowUntrustedServer = true
88
+ allowInsecureProtocol = true
89
+ push = true
90
+ }
91
+ }
92
+ }
You can’t perform that action at this time.
0 commit comments