Files
spring-cloud-contract/scripts/runTests.sh
Marcin Grzejszczak df7ee2e9f1 Reorganized samples
2016-07-13 15:50:34 +02:00

25 lines
484 B
Bash
Executable File

#!/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
export CONTRACT_VERIFIER_VERSION=${CONTRACT_VERIFIER_VERSION:-1.0.0.BUILD-SNAPSHOT}
echo "Current Spring Cloud Contract Verifier version is ${CONTRACT_VERIFIER_VERSION}"
cd samples/samples-standalone
echo "Running Gradle tests"
. ./runTests.sh
echo "Running Maven tests"
. ./runMavenTests.sh
cd $ROOT_FOLDER