[Test] Fail if there are changes in generated fir tree files in teamcity build

This commit is contained in:
Dmitriy Novozhilov
2021-01-29 17:45:55 +03:00
parent 297288e984
commit 771600077c
11 changed files with 69 additions and 40 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ import java.io.IOException
import kotlin.io.path.*
object GeneratorsFileUtil {
private val isTeamCityBuild: Boolean = System.getProperty("TEAMCITY_VERSION") != null
val isTeamCityBuild: Boolean = System.getProperty("TEAMCITY_VERSION") != null
@OptIn(ExperimentalPathApi::class)
@JvmStatic
@@ -47,7 +47,7 @@ object GeneratorsFileUtil {
println()
}
private fun assertTeamCityMode(): Nothing {
fun assertTeamCityMode(): Nothing {
throw IllegalStateException("You should commit all newly generated files before pushing them to TeamCity")
}