diff --git a/release_notes.md b/release_notes.md index 31a3cf1354..938e7a17cf 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,5 +1,5 @@ ## next (unreleased) -- +- [#952](https://github.com/Flank/flank/pull/952) Fix version printing on Flank release - - diff --git a/test_runner/build.gradle.kts b/test_runner/build.gradle.kts index 216ed1236c..94dfc5d621 100644 --- a/test_runner/build.gradle.kts +++ b/test_runner/build.gradle.kts @@ -140,11 +140,11 @@ tasks.jacocoTestReport { } } -val runningOnBitrise get() = System.getenv("BITRISE_IO") != null +val runningOnCI get() = System.getenv("CI") != null tasks.withType().configureEach { // https://devcenter.bitrise.io/builds/available-environment-variables/ - kotlinOptions.allWarningsAsErrors = runningOnBitrise + kotlinOptions.allWarningsAsErrors = runningOnCI } application { @@ -288,7 +288,7 @@ val processCliAsciiDoc by tasks.registering { val updateVersion by tasks.registering { shouldRunAfter(tasks.processResources) - if (!runningOnBitrise) doLast { + if (!runningOnCI) doLast { File("$buildDir/resources/main/version.txt").writeText("local_snapshot") File("$buildDir/resources/main/revision.txt").writeText(execAndGetStdout("git", "rev-parse", "HEAD")) }