diff options
author | Aurimas Liutikas <aurimas@google.com> | 2019-11-27 10:11:43 -0800 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-11-27 10:11:43 -0800 |
commit | f3c0c4376571c85980811c2029a9015ab961a3f2 (patch) | |
tree | a15f43e1dcdc1b2bfaccc96962f7097e7b122b66 | |
parent | 2e5dee4599baa712ee98f7017e3cedd9fcff6ce1 (diff) | |
parent | c6afe34d900b6101aadb1c56126bbfdf0b9e5d7b (diff) | |
download | dokka-f3c0c4376571c85980811c2029a9015ab961a3f2.tar.gz |
Update the way dokka gets built by CI
am: c6afe34d90
Change-Id: I6b6ab0aa000c6decef2fe7cf490a74bb15a40b3a
-rw-r--r-- | busytown.gradle | 28 | ||||
-rwxr-xr-x | busytown.sh | 3 |
2 files changed, 29 insertions, 2 deletions
diff --git a/busytown.gradle b/busytown.gradle new file mode 100644 index 000000000..9e262c078 --- /dev/null +++ b/busytown.gradle @@ -0,0 +1,28 @@ +def destDir = (System.getenv("DIST_DIR") == null) ? file("dist") : file(System.getenv("DIST_DIR")) + +def hostTestDir = new File(destDir, "host-test-reports") + +allprojects { project -> + project.tasks.withType(Test) { task -> + def report = task.reports.junitXml + if (report.isEnabled()) { + def zipTask = project.tasks.create("zipResultsOf${project.name}", Zip) { + destinationDir = hostTestDir + archiveName = "${project.name}.zip" + } + task.finalizedBy(zipTask) + task.doFirst { + zipTask.from(report.destination) + } + } + } + if (project.rootProject == project) { + def zipMaven = project.tasks.create("zipMaven", Zip) { + from file("${project.buildDir}/dist-maven") + destinationDir destDir + archiveName = "maven.zip" + } + zipMaven.dependsOn(":runners:android-gradle-plugin:publishToDistMaven") + zipMaven.dependsOn(":runners:gradle-plugin:publishToDistMaven") + } +} diff --git a/busytown.sh b/busytown.sh index 3bb633311..d99bdfe91 100755 --- a/busytown.sh +++ b/busytown.sh @@ -3,5 +3,4 @@ set -e SCRIPT_DIR="$(cd $(dirname $0) && pwd)" -# skip helpMojo as that requires mvn tool -$SCRIPT_DIR/gradlew -p $SCRIPT_DIR build test -x helpMojo
\ No newline at end of file +"$SCRIPT_DIR"/gradlew -p "$SCRIPT_DIR" -I "$SCRIPT_DIR"/busytown.gradle --no-daemon :core:build :runners:android-gradle-plugin:build :runners:gradle-integration-tests:build zipMaven
\ No newline at end of file |