Trying to fix circle

This commit is contained in:
Marcin Grzejszczak
2019-08-28 10:50:26 +02:00
parent bc28ec453e
commit cdb93f178b
3 changed files with 25 additions and 3 deletions

View File

@@ -4,8 +4,8 @@ jobs:
docker:
- image: cloudpipelines/pipeline-base
environment:
JAVA_TOOL_OPTIONS: "-Xms128m -Xmx250m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xms128m -Xmx250m -XX:+HeapDumpOnOutOfMemoryError" -Dorg.gradle.daemon=false'
JAVA_TOOL_OPTIONS: "-Xms64m -Xmx250m"
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xms64m -Xmx250m -XX:+HeapDumpOnOutOfMemoryError" -Dorg.gradle.daemon=false'
TERM: dumb
branches:
ignore:
@@ -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: ./scripts/noIntegration.sh && ./scripts/integrationOnly.sh
command: ./scripts/ciBuild.sh
- run:
name: "Aggregate test results"
when: always

11
scripts/ciBuild.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
source common.sh || source scripts/common.sh || echo "No common.sh script found..."
FOLDER=`pwd`
set -e
./scripts/noIntegration.sh -Pfast
./scripts/gradleOnly.sh
./scripts/integrationOnly.sh

11
scripts/gradleOnly.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
source common.sh || source scripts/common.sh || echo "No common.sh script found..."
FOLDER=`pwd`
set -e
cd "${FOLDER}/spring-cloud-contract-tools/spring-cloud-contract-gradle-plugin"
./gradlew clean build install
cd "${FOLDER}"