Bumping WireMock to 2.1.7 (#27)

* Bumping WireMock to 2.1.7
* Added samples to the project
* Updated docs

fixes #26, #7
This commit is contained in:
Marcin Grzejszczak
2016-07-12 13:06:42 +02:00
committed by GitHub
parent 1bed00ccf9
commit ebf8dd4b67
136 changed files with 5275 additions and 249 deletions

19
scripts/build.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -o errexit
ROOT_FOLDER=`pwd`
echo "Current folder is $ROOT_FOLDER"
if [[ ! -e "${ROOT_FOLDER}/.git" ]]; then
cd ..
ROOT_FOLDER=`pwd`
fi
ADDITIONAL_MAVEN_OPTS=${ADDITIONAL_MAVEN_OPTS:--Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn}
echo "Building Maven stuff with additional opts [$ADDITIONAL_MAVEN_OPTS]"
./mvnw clean install --batch-mode $ADDITIONAL_MAVEN_OPTS
echo "Building Gradle plugin"
(cd *-gradle-plugin; ./gradlew clean build install)

17
scripts/buildAndTest.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -o errexit
ROOT_FOLDER=`pwd`
echo "Current folder is $ROOT_FOLDER"
if [[ ! -e "${ROOT_FOLDER}/.git" ]]; then
cd ..
ROOT_FOLDER=`pwd`
fi
echo "Building all libraries"
$ROOT_FOLDER/scripts/build.sh
echo "Running tests"
$ROOT_FOLDER/scripts/runTests.sh

14
scripts/deploy.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -o errexit
ROOT_FOLDER=`pwd`
echo "Current folder is $ROOT_FOLDER"
if [[ ! -e "${ROOT_FOLDER}/.git" ]]; then
cd ..
ROOT_FOLDER=`pwd`
fi
./mvnw clean install && (cd *-gradle-plugin; ./gradlew clean build install) && ./scripts/runTests.sh && ./mvnw deploy && (cd *-gradle-plugin; ./gradlew uploadArchives -x test)

View File

@@ -5,17 +5,17 @@ set -o errexit
ROOT_FOLDER=`pwd`
echo "Current folder is $ROOT_FOLDER"
mkdir -p target
if [[ ! -e "${ROOT_FOLDER}/.git" ]]; then
cd ..
ROOT_FOLDER=`pwd`
fi
CONTRACT_VERIFIER_VERSION=1.0.0.BUILD-SNAPSHOT
export CONTRACT_VERIFIER_VERSION=${CONTRACT_VERIFIER_VERSION}
echo "Current Spring Cloud Contract Verifier version is ${CONTRACT_VERIFIER_VERSION}"
cd target
echo "Cloning samples"
rm -rf spring-cloud-contract-verifier-samples
git clone https://github.com/spring-cloud-samples/spring-cloud-contract-verifier-samples
cd spring-cloud-contract-verifier-samples
cd spring-cloud-contract-verifier-standalone-test-samples
echo "Running Gradle tests"
. ./runTests.sh