mirror of
https://github.com/google/nomulus.git
synced 2025-07-25 03:58:34 +02:00
Create a Gradle task to run the test server (#192)
* Create a Gradle task to run the test server As an artifact of the old build system, the test server relies on having the built registrar_(bin|dbg)*(\.css)?.js in place (see ConsoleUiAction among others). As a result, we create a Gradle task that puts those files into the correct, readable, location before running the test server. * Depend on assemble rather than build * refactor gitignores
This commit is contained in:
parent
9479e1e8b9
commit
56b10ea136
4 changed files with 24 additions and 4 deletions
|
@ -651,5 +651,19 @@ task buildToolImage(dependsOn: nomulus, type: Exec) {
|
|||
commandLine 'docker', 'build', '-t', 'nomulus-tool', '.'
|
||||
}
|
||||
|
||||
task copyJsFilesForTestServer(dependsOn: assemble, type: Copy) {
|
||||
// Unfortunately the test server relies on having some compiled JS/CSS
|
||||
// in place, so copy it over here
|
||||
from "${resourcesDir}/google/registry/ui/"
|
||||
include '**/*.js'
|
||||
include '**/*.css'
|
||||
into "${project.projectDir}/src/main/resources/google/registry/ui/"
|
||||
}
|
||||
|
||||
task runTestServer(dependsOn: copyJsFilesForTestServer, type: JavaExec) {
|
||||
main = 'google.registry.server.RegistryTestServerMain'
|
||||
classpath = sourceSets.test.runtimeClasspath
|
||||
}
|
||||
|
||||
project.build.dependsOn buildToolImage
|
||||
project.build.dependsOn ':stage'
|
||||
|
|
|
@ -41,7 +41,7 @@ public final class RegistryTestServerMain {
|
|||
@Parameter(
|
||||
names = "--mode",
|
||||
description = "UI console debug mode. RAW allows live editing; DEBUG allows rename testing.")
|
||||
private ConsoleDebug mode = ConsoleDebug.RAW;
|
||||
private ConsoleDebug mode = ConsoleDebug.PRODUCTION;
|
||||
|
||||
@Parameter(
|
||||
names = "--address",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue