diff --git a/.circleci/config.yml b/.circleci/config.yml index 205df285..ef0abbf2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,7 +33,7 @@ jobs: - run: name: dependencies command: | - ./mvnw -U --fail-never dependency:go-offline -Dservice.occurence=${_SERVICE_OCCURENCE} || true + ./mvnw -s .settings.xml -U --fail-never dependency:go-offline -Dservice.occurence=${_SERVICE_OCCURENCE} || true - save_cache: paths: - ~/.m2 @@ -41,7 +41,7 @@ jobs: - run: name: Run regular tests command: | - ./mvnw clean install -Dservice.occurence=${_SERVICE_OCCURENCE} #org.jacoco:jacoco-maven-plugin:prepare-agent install -U -P sonar -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn + ./mvnw -s .settings.xml clean install -Dservice.occurence=${_SERVICE_OCCURENCE} #org.jacoco:jacoco-maven-plugin:prepare-agent install -U -P sonar -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn mkdir -p $HOME/artifacts/junit/ find . -type f -regex ".*/spring-cloud-*.*/target/*.*" -exec cp {} $HOME/artifacts/ \; find . -type f -regex ".*/target/.*-reports/.*" -exec cp {} $HOME/artifacts/junit/ \; @@ -112,10 +112,19 @@ jobs: export KUBECONFIG=/tmp/kubeconfig cd spring-cloud-kubernetes-integration-tests ../mvnw -Ddocker.host='unix:///var/snap/microk8s/current/docker.sock' -Dimage.registry='localhost:32000' clean package fabric8:build verify -Pfmp,it,spring - - store_test_results: - path: $HOME/artifacts/junit/ + - run: + name: "Aggregate test results" + when: always + command: | + mkdir -p ~/junit/ + find . -type f -regex ".*/target/.*-reports/.*" -exec cp {} ~/junit/ \; + bash <(curl -s https://codecov.io/bash) - store_artifacts: - path: $HOME/artifacts/ + path: ~/junit/ + destination: artifacts + - store_test_results: + path: ~/junit/ + destination: testartifacts notify: webhooks: - url: https://webhooks.gitter.im/e/22e6bb4eb945dd61ba54 diff --git a/.settings.xml b/.settings.xml index 70447908..c8add61d 100644 --- a/.settings.xml +++ b/.settings.xml @@ -23,7 +23,7 @@ spring-snapshots Spring Snapshots - https://repo.spring.io/libs-snapshot-local + https://repo.spring.io/snapshot true @@ -31,7 +31,7 @@ spring-milestones Spring Milestones - https://repo.spring.io/libs-milestone-local + https://repo.spring.io/milestone false @@ -49,7 +49,7 @@ spring-snapshots Spring Snapshots - https://repo.spring.io/libs-snapshot-local + https://repo.spring.io/snapshot true @@ -57,7 +57,7 @@ spring-milestones Spring Milestones - https://repo.spring.io/libs-milestone-local + https://repo.spring.io/milestone false diff --git a/pom.xml b/pom.xml index 02f1dcd1..2fcbeae7 100644 --- a/pom.xml +++ b/pom.xml @@ -224,7 +224,7 @@ spring-snapshots Spring Snapshots - https://repo.spring.io/libs-snapshot-local + https://repo.spring.io/snapshot true @@ -235,7 +235,7 @@ spring-milestones Spring Milestones - https://repo.spring.io/libs-milestone-local + https://repo.spring.io/milestone false @@ -253,7 +253,7 @@ spring-snapshots Spring Snapshots - https://repo.spring.io/libs-snapshot-local + https://repo.spring.io/snapshot true @@ -264,7 +264,7 @@ spring-milestones Spring Milestones - https://repo.spring.io/libs-milestone-local + https://repo.spring.io/milestone false @@ -272,7 +272,7 @@ spring-releases Spring Releases - https://repo.spring.io/libs-release-local + https://repo.spring.io/release false diff --git a/spring-cloud-kubernetes-integration-tests/discovery/tests/pom.xml b/spring-cloud-kubernetes-integration-tests/discovery/tests/pom.xml index 97fd9aa3..3889383e 100644 --- a/spring-cloud-kubernetes-integration-tests/discovery/tests/pom.xml +++ b/spring-cloud-kubernetes-integration-tests/discovery/tests/pom.xml @@ -14,6 +14,14 @@ Spring Cloud Kubernetes :: Integration Tests :: Discovery Tests + + com.squareup.okhttp3 + okhttp + + + com.squareup.okhttp3 + logging-interceptor + org.springframework.boot spring-boot-starter-test diff --git a/spring-cloud-kubernetes-integration-tests/pom.xml b/spring-cloud-kubernetes-integration-tests/pom.xml index b68d1430..1e72ca4b 100644 --- a/spring-cloud-kubernetes-integration-tests/pom.xml +++ b/spring-cloud-kubernetes-integration-tests/pom.xml @@ -23,6 +23,7 @@ 1.18.2 1.4.0.Final 3.2.0 + 3.12.12 - - diff --git a/spring-cloud-kubernetes-integration-tests/simple-configmap/pom.xml b/spring-cloud-kubernetes-integration-tests/simple-configmap/pom.xml index 37ebae6e..c84d252d 100644 --- a/spring-cloud-kubernetes-integration-tests/simple-configmap/pom.xml +++ b/spring-cloud-kubernetes-integration-tests/simple-configmap/pom.xml @@ -31,6 +31,14 @@ org.springframework.boot spring-boot-actuator-autoconfigure + + com.squareup.okhttp3 + okhttp + + + com.squareup.okhttp3 + logging-interceptor + org.springframework.boot spring-boot-starter-test @@ -63,6 +71,7 @@ rest-assured test + diff --git a/spring-cloud-kubernetes-integration-tests/simple-core/pom.xml b/spring-cloud-kubernetes-integration-tests/simple-core/pom.xml index 41cd2ce2..eda3be99 100644 --- a/spring-cloud-kubernetes-integration-tests/simple-core/pom.xml +++ b/spring-cloud-kubernetes-integration-tests/simple-core/pom.xml @@ -31,6 +31,14 @@ org.springframework.cloud spring-cloud-kubernetes-core + + com.squareup.okhttp3 + okhttp + + + com.squareup.okhttp3 + logging-interceptor + org.springframework.boot spring-boot-starter-test