From db8e641de5910465afe731d191985d14bc0caade Mon Sep 17 00:00:00 2001 From: gaoyunpeng Date: Fri, 4 Jan 2019 16:43:49 +0800 Subject: [PATCH 1/8] add codecov's token --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8fbf11a23..58c7cf46f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -31,7 +31,7 @@ jobs: command: | mkdir -p ~/junit/ find . -type f -regex ".*/target/.*-reports/.*" -exec cp {} ~/junit/ \; - bash <(curl -s https://codecov.io/bash) + bash <(curl -s https://codecov.io/bash) -t 8dc515f7-a691-4e29-9b68-6199cd3ca46d - store_artifacts: path: ~/junit/ destination: artifacts From c3e9201ffee529c61d79d3a4eb18da3719f50025 Mon Sep 17 00:00:00 2001 From: gaoyunpeng Date: Fri, 4 Jan 2019 17:03:15 +0800 Subject: [PATCH 2/8] add command install codecov --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 58c7cf46f..63931c496 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,6 +25,9 @@ jobs: - run: name: "Running build" command: ./mvnw -Pspring -Pdocs clean install -U -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn + - run: + name: "install codecov" + command: "pip install codecov" - run: name: "Aggregate test results" when: always From 33b947df6ef0cd1955d434eeba7b06bad603e11c Mon Sep 17 00:00:00 2001 From: gaoyunpeng Date: Fri, 4 Jan 2019 17:17:24 +0800 Subject: [PATCH 3/8] add cobertura --- .circleci/config.yml | 7 +++---- pom.xml | 12 ++++++++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 63931c496..02f7a0457 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,10 +24,9 @@ jobs: - ~/.m2 - run: name: "Running build" - command: ./mvnw -Pspring -Pdocs clean install -U -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - - run: - name: "install codecov" - command: "pip install codecov" + command: | + ./mvnw cobertura:cobertura + ./mvnw -Pspring -Pdocs clean install -U -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - run: name: "Aggregate test results" when: always diff --git a/pom.xml b/pom.xml index 776c8b0b5..1d721fb30 100644 --- a/pom.xml +++ b/pom.xml @@ -179,6 +179,18 @@ false + + org.codehaus.mojo + cobertura-maven-plugin + 2.7 + + + html + xml + + + + From de3a093be9c1c160c60c92d4c2239a650babdf3e Mon Sep 17 00:00:00 2001 From: gaoyunpeng Date: Fri, 4 Jan 2019 17:46:55 +0800 Subject: [PATCH 4/8] add install python --- .circleci/config.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 02f7a0457..6ab8c2eb4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,9 +24,13 @@ jobs: - ~/.m2 - run: name: "Running build" + command: ./mvnw -Pspring -Pdocs clean install -U -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn + - run: + name: "look and install python" command: | - ./mvnw cobertura:cobertura - ./mvnw -Pspring -Pdocs clean install -U -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn + python -V + sudo bash -c "yes | add-apt-repository ppa:jonathonf/python-3.6 && apt-get update && apt-get install -y python3.6" + python -V - run: name: "Aggregate test results" when: always From 8b8008889f8ec903f28542efce9083176987b949 Mon Sep 17 00:00:00 2001 From: gaoyunpeng Date: Fri, 4 Jan 2019 17:51:45 +0800 Subject: [PATCH 5/8] add install python --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6ab8c2eb4..9e949bce7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -29,7 +29,7 @@ jobs: name: "look and install python" command: | python -V - sudo bash -c "yes | add-apt-repository ppa:jonathonf/python-3.6 && apt-get update && apt-get install -y python3.6" + bash -c "yes | add-apt-repository ppa:jonathonf/python-3.6 && apt-get update && apt-get install -y python3.6" python -V - run: name: "Aggregate test results" From 97063e5200652e85bed41ebfccea95a40cbac31b Mon Sep 17 00:00:00 2001 From: xiaolongzuo <150349407@qq.com> Date: Mon, 7 Jan 2019 15:46:40 +0800 Subject: [PATCH 6/8] Upgrade alicloud-context version. --- spring-cloud-alibaba-dependencies/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-cloud-alibaba-dependencies/pom.xml b/spring-cloud-alibaba-dependencies/pom.xml index 0f27aa0cd..cc49e9ee0 100644 --- a/spring-cloud-alibaba-dependencies/pom.xml +++ b/spring-cloud-alibaba-dependencies/pom.xml @@ -24,7 +24,7 @@ 1.0.8 1.0.1 4.0.1 - 1.0.3 + 1.0.4 2.16.0 4.3.1 2.1.6 From e28d24ba4a2770773a220a6a4674b8633491d89f Mon Sep 17 00:00:00 2001 From: gaoyunpeng Date: Tue, 8 Jan 2019 14:10:44 +0800 Subject: [PATCH 7/8] update cobertura settings --- .circleci/config.yml | 10 +++------- pom.xml | 8 ++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9e949bce7..a6a2acd60 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -24,20 +24,16 @@ jobs: - ~/.m2 - run: name: "Running build" - command: ./mvnw -Pspring -Pdocs clean install -U -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - - run: - name: "look and install python" command: | - python -V - bash -c "yes | add-apt-repository ppa:jonathonf/python-3.6 && apt-get update && apt-get install -y python3.6" - python -V + ./mvnw cobertura:cobertura + ./mvnw -Pspring -Pdocs clean install -U -nsu --batch-mode -Dmaven.test.redirectTestOutputToFile=true -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn - 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) -t 8dc515f7-a691-4e29-9b68-6199cd3ca46d + bash <(curl -s https://codecov.io/bash) - store_artifacts: path: ~/junit/ destination: artifacts diff --git a/pom.xml b/pom.xml index 1d721fb30..950b817a7 100644 --- a/pom.xml +++ b/pom.xml @@ -190,6 +190,14 @@ + + + package + + cobertura + + + From 945d9738dc945d44dc56ec773af1631c4696bada Mon Sep 17 00:00:00 2001 From: gaoyunpeng Date: Tue, 8 Jan 2019 14:44:29 +0800 Subject: [PATCH 8/8] add codecov settings --- .codecov.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .codecov.yml diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 000000000..fcea9e5d8 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1,16 @@ +coverage: + status: + project: + default: + # basic + target: auto + threshold: null + base: auto + # advanced + branches: null + if_no_uploads: error + if_not_found: success + if_ci_failed: error + only_pulls: false + flags: null + paths: null \ No newline at end of file