Combine jacoco with gradle build

This commit is contained in:
Dave Syer
2016-07-28 13:35:49 +01:00
parent 71b16eac86
commit f3fa74ab00
2 changed files with 3 additions and 4 deletions

View File

@@ -25,17 +25,15 @@ dependencies:
sudo service postgresql stop || echo "Service not running"
- touch ~/.gradle/gradle.properties && echo "org.gradle.daemon=false" >> ~/.gradle/gradle.properties
override:
- ./scripts/downloadDependencies.sh || true
- ./mvnw dependency:resolve || true
test:
override:
# docs take 15 minutes to run
#- ./mvnw install -P docs -q -U -DskipTests=true $MVN_LOCAL_OPTS
- ./scripts/buildAndTest.sh
- ./mvnw install -P docs,integration -q -U $MVN_LOCAL_OPTS
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find . -type f -regex ".*/target/.*-reports/.*" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
- find . -type f -regex ".*/build/test-results/.*" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
- cd spring-cloud-contract-tools/spring-cloud-contract-gradle-plugin && ./gradlew jacocoTestReport
- bash <(curl -s https://codecov.io/bash)
notify:
webhooks:

View File

@@ -64,6 +64,7 @@
<executable>./gradlew</executable>
<arguments>
<argument>build</argument>
<argument>jacocoTestReport</argument>
</arguments>
</configuration>
<goals>