Browse Source

ci: Load dependencies as a separate gradle task

Updates blubber config to v3 and uses a builder command to load gradle
dependencies separately from running the tests.

Change-Id: I8c08412ec1b64fac16bbf7534e2df3bf74f4fe33
master
Dan Duvall 3 years ago
parent
commit
ef7d1e346e
2 changed files with 15 additions and 3 deletions
  1. +5
    -3
      .pipeline/blubber.yaml
  2. +10
    -0
      build.gradle

+ 5
- 3
.pipeline/blubber.yaml View File

@ -1,8 +1,10 @@
version: v2
base: docker-registry.wikimedia.org/wikimedia-stretch
apt: { packages: [gradle] }
version: v3
base: gradle:jre
variants:
test:
runs: { insecurely: true }
builder:
command: [gradle, deps]
requirements: [build.gradle]
entrypoint: [gradle, test]

+ 10
- 0
build.gradle View File

@ -28,3 +28,13 @@ test {
exceptionFormat = 'full'
}
}
/**
* Build task used to preload all dependencies.
*/
task deps(type: Exec) {
// Simply reading testRuntime.files will cause gradle to resolve/install
// runtime and test dependencies
configurations.testRuntime.files
commandLine 'true'
}

Loading…
Cancel
Save