From 0d0856dd5e3c0ea4d526880034ad1b678fed10d2 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Wed, 28 Aug 2019 10:13:12 +0200 Subject: [PATCH] Improved circle build --- .circleci/config.yml | 2 +- scripts/integrationOnly.sh | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 scripts/integrationOnly.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index ef4c4011e9..3a9d1fb6b4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -32,7 +32,7 @@ jobs: command: rm -rf ~/.m2/repository/org/springframework/cloud/contract && rm -rf ~/.m2/repository/com/example - run: name: "Running build" - command: ./mvnw -s .settings.xml clean install -U -Pdocs,fast,integration -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn + command: ./scripts/noIntegration.sh && ./scripts/integrationOnly.sh - run: name: "Aggregate test results" when: always diff --git a/scripts/integrationOnly.sh b/scripts/integrationOnly.sh new file mode 100755 index 0000000000..c090c8d5a0 --- /dev/null +++ b/scripts/integrationOnly.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +source common.sh || source scripts/common.sh || echo "No common.sh script found..." + +FOLDER=`pwd` + +set -e + +./mvnw clean install ${@} -Pintegration -pl docker +./mvnw clean install ${@} -Pintegration -rf samples \ No newline at end of file