|
5 | 5 | - qa-common/retry.yml |
6 | 6 | - project: 'Northern.tech/Mender/mendertesting' |
7 | 7 | file: '.gitlab-ci-check-golang-lint.yml' |
8 | | - - project: 'Northern.tech/Mender/mendertesting' |
9 | | - file: '.gitlab-ci-check-golang-unittests-v2.yml' |
| 8 | + - component: gitlab.com/Northern.tech/Mender/mendertesting/golang-unittests-v2-codecov@master |
10 | 9 | - component: gitlab.com/Northern.tech/Mender/mendertesting/commit-lint@master |
11 | 10 | - project: 'Northern.tech/Mender/mendertesting' |
12 | 11 | file: '.gitlab-ci-check-license.yml' |
@@ -255,32 +254,26 @@ test:install:brew: |
255 | 254 |
|
256 | 255 | publish:acceptance: |
257 | 256 | stage: publish |
258 | | - image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/golang:1.20-alpine3.17 |
259 | | - allow_failure: true # QA-925 - Coveralls servers are unreliable. |
| 257 | + image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/golang:1.24-alpine |
| 258 | + allow_failure: true |
260 | 259 | dependencies: |
261 | 260 | - test_acceptance:run |
262 | 261 | before_script: |
263 | 262 | - !reference [.qa-common-network-go-retry, before_script] |
264 | | - - go tool covdata textfmt -i tests/acceptance/coverage -o coverage.txt |
265 | | - - go install github.com/mattn/goveralls@latest |
266 | | - # Coveralls env variables: |
267 | | - # According to https://docs.coveralls.io/supported-ci-services |
268 | | - # we should set CI_NAME, CI_BUILD_NUMBER, etc. But according |
269 | | - # to goveralls source code (https://github.com/mattn/goveralls) |
270 | | - # many of these are not supported. Set CI_BRANCH, CI_PR_NUMBER, |
271 | | - # and pass few others as command line arguments. |
272 | | - # See also https://docs.coveralls.io/api-reference |
273 | | - - export CI_BRANCH=${CI_COMMIT_BRANCH} |
274 | | - - export CI_PR_NUMBER=${CI_COMMIT_BRANCH#pr_} |
275 | 263 | script: |
276 | | - - goveralls |
277 | | - -repotoken ${COVERALLS_TOKEN} |
278 | | - -service gitlab-ci |
279 | | - -jobid $CI_PIPELINE_ID |
280 | | - -covermode set |
281 | | - -flagname acceptance |
282 | | - -parallel |
283 | | - -coverprofile coverage.txt |
| 264 | + - go tool covdata textfmt -i tests/acceptance/coverage -o coverage.txt |
| 265 | + - wget -q https://cli.codecov.io/latest/alpine/codecov |
| 266 | + - wget -q https://cli.codecov.io/latest/alpine/codecov.SHA256SUM |
| 267 | + - sha256sum -c codecov.SHA256SUM |
| 268 | + - chmod +x codecov |
| 269 | + - ./codecov upload-process |
| 270 | + --fail-on-error |
| 271 | + --git-service github |
| 272 | + --slug mendersoftware/${CI_PROJECT_NAME} |
| 273 | + --sha ${CI_COMMIT_SHA} |
| 274 | + --pr $(echo "${CI_COMMIT_BRANCH}" | sed 's/^pr_//') |
| 275 | + --file coverage.txt |
| 276 | + --flag acceptance |
284 | 277 |
|
285 | 278 | publish:s3: |
286 | 279 | stage: publish |
|
0 commit comments