diff --git a/.circleci/config.yml b/.circleci/config.yml index ad0065d5f..141e31863 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,12 +22,27 @@ jobs: - checkout - restore_cache: key: dmp-{{ checksum "pom.xml" }} - - run: mvn install + - run: mvn install -Pjacoco + - run: bash <(curl -s https://codecov.io/bash) - save_cache: key: dmp-{{ checksum "pom.xml" }} paths: - ~/.m2 + sonar: + working_directory: ~/fabric8io/dmp-sonar + docker: + - image: circleci/openjdk:8-node-browsers + steps: + - checkout + - restore_cache: + key: dmp-sonar-{{ checksum "pom.xml" }} + - run: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONAR_TOKEN} + - save_cache: + key: dmp-sonar-{{ checksum "pom.xml" }} + paths: + - ~/.m2 + workflows: version: 2 all: diff --git a/.codecov.yml b/.codecov.yml index 9b0c77373..1ef0eaa68 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -2,11 +2,6 @@ coverage: range: "45...90" precision: 2 round: down - notify: - slack: - default: - url: "https://hooks.slack.com/services/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" - threshold: "2%" status: project: default: @@ -14,4 +9,4 @@ coverage: comment: layout: "header, diff, tree, sunburst" require_changes: true - + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 2242c9496..000000000 --- a/.travis.yml +++ /dev/null @@ -1,11 +0,0 @@ -language: java -jdk: - - oraclejdk8 -script: - - mvn test -B -Pjacoco -after_success: - - bash <(curl -s https://codecov.io/bash) -after_script: - - env - - "[[ $TRAVIS_PULL_REQUEST == false ]] && mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${SONAR_TOKEN}" -