Fix standalone test scripts

This commit is contained in:
Dave Syer
2016-07-26 16:25:25 +01:00
parent 562717b3d9
commit f7e4e036bd
4 changed files with 13 additions and 6 deletions

View File

@@ -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[]

View File

@@ -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

View File

@@ -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'

View File

@@ -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