Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .gitlab-ci-check-docker-acceptance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,15 @@ publish:acceptance:
image: curlimages/curl-base
allow_failure: true
script:
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- curl -Os https://cli.codecov.io/latest/alpine/codecov
- curl -Os https://cli.codecov.io/latest/alpine/codecov.SHA256SUM
- sha256sum -c codecov.SHA256SUM
- chmod +x codecov
- unset GITLAB_CI
- ./codecov --token ${CODECOV_TOKEN} --file ./tests/coverage-acceptance.txt --flag acceptance --nonZero
- ./codecov upload-process
--fail-on-error
--git-service github
--slug mendersoftware/${CI_PROJECT_NAME}
--sha ${CI_COMMIT_SHA}
--pr $(echo "${CI_COMMIT_BRANCH}" | sed 's/^pr_//')
--service github
--file ./tests/coverage-acceptance.txt
--flag acceptance
13 changes: 9 additions & 4 deletions .gitlab-ci-check-golang-unittests-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,15 @@ publish:unittests:
dependencies:
- test:unit
script:
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- curl -Os https://cli.codecov.io/latest/alpine/codecov
- curl -Os https://cli.codecov.io/latest/alpine/codecov.SHA256SUM
- sha256sum -c codecov.SHA256SUM
- chmod +x codecov
- unset GITLAB_CI
- ./codecov --token ${CODECOV_TOKEN} --file coverage.txt --flag unittests --nonZero
- ./codecov upload-process
--fail-on-error
--git-service github
--slug mendersoftware/${CI_PROJECT_NAME}
--sha ${CI_COMMIT_SHA}
--pr $(echo "${CI_COMMIT_BRANCH}" | sed 's/^pr_//')
--service github
--file coverage.txt
--flag unittests
14 changes: 9 additions & 5 deletions .gitlab-ci-check-golang-unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,15 @@ publish:unittests:
- test:unit
script:
- tar -xvf unit-coverage.tar
- curl -Os https://uploader.codecov.io/latest/linux/codecov
- curl -Os https://cli.codecov.io/latest/alpine/codecov
- curl -Os https://cli.codecov.io/latest/alpine/codecov.SHA256SUM
- sha256sum -c codecov.SHA256SUM
- chmod +x codecov
- unset GITLAB_CI
- ./codecov --token ${CODECOV_TOKEN} --flag unittests --nonZero
--file $(find tests/unit-coverage -name 'coverage.txt' | tr '\n' ',' | sed 's/,$//')
- ./codecov upload-process
--fail-on-error
--git-service github
--slug mendersoftware/${CI_PROJECT_NAME}
--sha ${CI_COMMIT_SHA}
--pr $(echo "${CI_COMMIT_BRANCH}" | sed 's/^pr_//')
--service github
--file $(find tests/unit-coverage -name 'coverage.txt' | tr '\n' ',' | sed 's/,$//')
--flag unittests