Fix standalone test scripts
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
:samples_path: {core_path}/samples
|
||||
:verifier_core_path: {verifier_root_path}
|
||||
:stubrunner_core_path: {core_path}/spring-cloud-contract-stub-runner
|
||||
:standalone_samples_path: {samples_path}/standalone
|
||||
:standalone_samples_path: {samples_path}/standalone/dsl
|
||||
:tests_path: ../../../../../tests
|
||||
|
||||
include::introduction.adoc[]
|
||||
|
||||
@@ -12,10 +12,17 @@ LOCAL_MAVEN_REPO=${LOCAL_MAVEN_REPO}
|
||||
VERIFIER_VERSION=${VERIFIER_VERSION}
|
||||
EOF
|
||||
|
||||
cd http-server
|
||||
cd dsl/http-server
|
||||
./gradlew resolveDependencies -PverifierVersion=${VERIFIER_VERSION}
|
||||
cd $ROOT
|
||||
cd http-client
|
||||
cd dsl/http-client
|
||||
./gradlew resolveDependencies -PverifierVersion=${VERIFIER_VERSION} --stacktrace
|
||||
cd $ROOT
|
||||
|
||||
cd restdocs/http-server
|
||||
./gradlew resolveDependencies -PverifierVersion=${VERIFIER_VERSION}
|
||||
cd $ROOT
|
||||
cd restdocs/http-client
|
||||
./gradlew resolveDependencies -PverifierVersion=${VERIFIER_VERSION} --stacktrace
|
||||
cd $ROOT
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
stubrunner:
|
||||
work-offline: true
|
||||
stubs.ids: 'com.example:http-server:+:stubs:8080'
|
||||
stubs.ids: 'com.example:http-server-dsl:+:stubs:8080'
|
||||
@@ -18,11 +18,11 @@ rm -rf $LOCAL_MAVEN_REPO/repository/com/example
|
||||
|
||||
echo -e "\n\nRunning tests for Gradle (HTTP communication)\n\n"
|
||||
echo -e "Building server (uses Spring Cloud Contract Verifier Gradle Plugin)"
|
||||
cd http-server
|
||||
cd dsl/http-server
|
||||
./gradlew clean build publishToMavenLocal -PverifierVersion=${VERIFIER_VERSION} --stacktrace
|
||||
cd $ROOT
|
||||
echo -e "\n\nBuilding client (uses Spring Cloud Contract Stub Runner)"
|
||||
cd http-client
|
||||
cd dsl/http-client
|
||||
./gradlew clean build -PverifierVersion=${VERIFIER_VERSION} --stacktrace
|
||||
cd $ROOT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user