1
0
mirror of https://github.com/google/nomulus synced 2026-01-07 14:05:44 +00:00

Allow schema push in alpha and crash (#771)

* Allow schema push in alpha and crash

This allows unsubmitted changes to be tested in alpha and
crash.

Also updated the README file and reformatted with the internal
mdformat tool.
This commit is contained in:
Weimin Yu
2020-08-19 00:05:57 -04:00
committed by GitHub
parent f9e3986a4a
commit 70274da971
2 changed files with 17 additions and 9 deletions

View File

@@ -29,8 +29,8 @@ ext {
def dbServer = findProperty(dbServerProperty).toString().toLowerCase()
def dbName = findProperty(dbNameProperty)
isCloudSql = {
return allDbEnv.contains(dbServer)
isRestricted = {
return restrictedDbEnv.contains(dbServer)
}
getAccessInfoByHostPort = { hostAndPort ->
@@ -169,8 +169,8 @@ dependencies {
flywayInfo.dependsOn('buildNeeded')
flywayValidate.dependsOn('buildNeeded')
if (ext.isCloudSql()) {
// Disable dangerous Flyway tasks. Only allow info and validate.
if (ext.isRestricted()) {
// Disable dangerous Flyway tasks in sandbox and production. Only allow info and validate.
tasks.findAll { task -> task.group.equals('Flyway')}.each {
if (it.name == 'flywayMigrate') {
it.doFirst {