diff --git a/.travis.yml b/.travis.yml index b51e928166..462f18b0e4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,4 +13,4 @@ jdk: - oraclejdk8 install: ./gradlew assemble -script: ./gradlew clean check funcTest --stacktrace --continue +script: ./gradlew clean check funcTest --stacktrace --continue && /.gradlew install --parallel && ./scripts/runTests.sh diff --git a/scripts/runTests.sh b/scripts/runTests.sh new file mode 100755 index 0000000000..4658a122d2 --- /dev/null +++ b/scripts/runTests.sh @@ -0,0 +1,21 @@ +#!/usr/bin/env bash + +set -o errexit + +mkdir -p build +GRADLE_OUTPUT=`./gradlew cV --quiet` +ACCUREST_VERSION=`echo ${GRADLE_OUTPUT##*:}` +export ACCUREST_VERSION=${ACCUREST_VERSION} + +echo "Current accurest version is ${ACCUREST_VERSION}" + +cd build +echo "Cloning samples" +git clone https://github.com/Codearte/accurest-samples +cd accurest-samples + +echo "Running Gradle tests" +. ./runTests.sh + +echo "Running Maven tests" +. ./runMavenTests.sh