From cf1bd5df331d477d619dfbc5c4ee42efeb5670d1 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Tue, 3 May 2016 21:40:17 +0200 Subject: [PATCH] Added e2e for Accurest --- .travis.yml | 2 +- scripts/runTests.sh | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100755 scripts/runTests.sh 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