[Test] Fail if there are changes in generated fir tree files in teamcity build
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user