Fixed Contract build
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source common.sh || source scripts/common.sh || echo "No common.sh script found..."
|
||||
|
||||
set -e
|
||||
|
||||
ADDITIONAL_MAVEN_OPTS=${ADDITIONAL_MAVEN_OPTS:--Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn}
|
||||
|
||||
echo "Building Maven and Gradle projects for version [$VERIFIER_VERSION]"
|
||||
|
||||
echo "Building Maven stuff with additional opts [$ADDITIONAL_MAVEN_OPTS]"
|
||||
./mvnw clean org.jacoco:jacoco-maven-plugin:prepare-agent install -Psonar --batch-mode $ADDITIONAL_MAVEN_OPTS
|
||||
@@ -1,51 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source common.sh || source scripts/common.sh || echo "No common.sh script found..."
|
||||
|
||||
set -e
|
||||
|
||||
function print_usage() {
|
||||
cat <<EOF
|
||||
USAGE:
|
||||
You can use the following options:
|
||||
-v|--version - which version of Spring Cloud Contract do you want to use
|
||||
EOF
|
||||
}
|
||||
|
||||
while [[ $# > 0 ]]
|
||||
do
|
||||
key="$1"
|
||||
case $key in
|
||||
-v|--version)
|
||||
VERIFIER_VERSION="$2"
|
||||
shift # past argument
|
||||
;;
|
||||
--help)
|
||||
print_usage
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "Invalid option: [$1]"
|
||||
print_usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
shift # past argument or value
|
||||
done
|
||||
|
||||
# Code grepping for the 3rd presence of "version" in pom.xml.
|
||||
# The 3rd one is where we define the SC-Contract version
|
||||
VERSION_NODE=`awk '/version/{i++}i==3{print; exit}' $ROOT_FOLDER/pom.xml`
|
||||
# Extract the contents of the version node
|
||||
VERSION_VALUE=$(sed -ne '/version/{s/.*<version>\(.*\)<\/version>.*/\1/p;q;}' <<< "$VERSION_NODE")
|
||||
|
||||
[[ -z "${VERIFIER_VERSION}" ]] && VERIFIER_VERSION="$VERSION_VALUE"
|
||||
export VERIFIER_VERSION
|
||||
|
||||
echo -e "\n\nBUILDING AND RUNNING TESTS FOR VERIFIER IN VERSION [$VERIFIER_VERSION]\n\n"
|
||||
|
||||
echo "Building all libraries"
|
||||
$ROOT_FOLDER/scripts/build.sh
|
||||
|
||||
echo "Running tests"
|
||||
$ROOT_FOLDER/scripts/runTests.sh
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
source common.sh || source scripts/common.sh || echo "No common.sh script found..."
|
||||
|
||||
set -e
|
||||
|
||||
./mvnw clean install && ./scripts/runTests.sh && ./mvnw deploy
|
||||
@@ -6,5 +6,15 @@ set -e
|
||||
|
||||
./mvnw -s .settings.xml --fail-never dependency:go-offline || true
|
||||
cd $ROOT_FOLDER/spring-cloud-contact-gradle-plugin && ./gradlew resolveDependencies || true
|
||||
cd $ROOT_FOLDER/samples/samples-standalone && ./mvnw --fail-never dependency:go-offline || true
|
||||
cd $ROOT_FOLDER/samples/samples-standalone && ./downloadGradleDeps.sh
|
||||
cd $ROOT_FOLDER/samples/standalone/dsl/http-client && ./mvnw --fail-never dependency:go-offline || true
|
||||
cd $ROOT_FOLDER/samples/standalone/dsl/http-client && ./downloadGradleDeps.sh
|
||||
cd $ROOT_FOLDER/samples/standalone/dsl/http-server && ./mvnw --fail-never dependency:go-offline || true
|
||||
cd $ROOT_FOLDER/samples/standalone/dsl/http-server && ./downloadGradleDeps.sh
|
||||
cd $ROOT_FOLDER/samples/standalone/restdocs/http-client && ./mvnw --fail-never dependency:go-offline || true
|
||||
cd $ROOT_FOLDER/samples/standalone/restdocs/http-client && ./downloadGradleDeps.sh
|
||||
cd $ROOT_FOLDER/samples/standalone/restdocs/http-server && ./mvnw --fail-never dependency:go-offline || true
|
||||
cd $ROOT_FOLDER/samples/standalone/restdocs/http-server && ./downloadGradleDeps.sh
|
||||
cd $ROOT_FOLDER/samples/standalone/messaging/stream-sink && ./mvnw --fail-never dependency:go-offline || true
|
||||
cd $ROOT_FOLDER/samples/standalone/messaging/stream-sink && ./downloadGradleDeps.sh
|
||||
cd $ROOT_FOLDER/samples/standalone/messaging/sream-source && ./mvnw --fail-never dependency:go-offline || true
|
||||
cd $ROOT_FOLDER/samples/standalone/messaging/sream-source && ./downloadGradleDeps.sh
|
||||
|
||||
Reference in New Issue
Block a user