Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump: to 13.13.9 for SH release 13.0.0 #476

Merged
merged 1 commit into from
Nov 3, 2023
Merged
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
35 changes: 15 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
version: 2.1

orbs:
codacy: codacy/base@10.2.3
codacy: codacy/base@10.10.0

references:
circleci_job: &circleci_job
docker:
- image: circleci/circleci-cli:0.1.28084
working_directory: ~/workdir

default_machine_job: &default_machine_job
machine:
image: ubuntu-2004:202201-02
- image: circleci/circleci-cli:0.1.29041
working_directory: ~/workdir

commands:
Expand Down Expand Up @@ -43,7 +38,8 @@ commands:

jobs:
publish_circleci_artifacts:
machine: true
machine:
image: ubuntu-2004:current
working_directory: ~/workdir
steps:
- attach_workspace:
Expand Down Expand Up @@ -76,7 +72,7 @@ jobs:
steps:
- attach_workspace:
at: ~/workdir
- deploy:
- run:
name: Publish orb as dev (deleted after 90 days)
command: circleci orb publish orb.yml codacy/coverage-reporter@dev:$(cat .version) --token $CIRCLE_TOKEN

Expand All @@ -85,16 +81,16 @@ jobs:
steps:
- attach_workspace:
at: ~/workdir
- deploy:
- run:
name: Publish final orb
command: circleci orb publish orb.yml codacy/coverage-reporter@$(cat .version) --token $CIRCLE_TOKEN

package_artifacts:
docker:
- image: hairyhenderson/upx:3.94
- image: alpine:3.18
working_directory: ~/workdir
steps:
- run: apk add ca-certificates
- run: apk add upx
- attach_workspace:
at: ~/workdir
- run: |
Expand All @@ -103,16 +99,16 @@ jobs:
upx --lzma -o ~/workdir/artifacts/codacy-coverage-reporter-linux ~/workdir/tmp-artifacts/codacy-coverage-reporter-linux
# upx binaries don't work on Mac OS Big Sur https://github.com/upx/upx/issues/424
# use upx again once the bug is fixed
# upx --lzma -o ~/workdir/artifacts/codacy-coverage-reporter-darwin ~/workdir/tmp-artifacts/codacy-coverage-reporter-darwin
cp ~/workdir/tmp-artifacts/codacy-coverage-reporter-darwin ~/workdir/artifacts/codacy-coverage-reporter-darwin
upx --lzma -o ~/workdir/artifacts/codacy-coverage-reporter-darwin ~/workdir/tmp-artifacts/codacy-coverage-reporter-darwin
#cp ~/workdir/tmp-artifacts/codacy-coverage-reporter-darwin ~/workdir/artifacts/codacy-coverage-reporter-darwin
- persist_to_workspace:
root: ~/workdir
paths:
- artifacts/*

it_coverage_script_alpine:
docker:
- image: alpine:3.9.5
- image: alpine:3.18
- image: mockserver/mockserver
working_directory: ~/workdir
steps:
Expand All @@ -121,8 +117,8 @@ jobs:
command: |
apk --no-cache add openssl wget
wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.31-r0/glibc-2.31-r0.apk
apk add glibc-2.31-r0.apk
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.35-r1/glibc-2.35-r1.apk
apk add glibc-2.35-r1.apk
- attach_workspace:
at: ~/workdir
- run:
Expand All @@ -137,7 +133,7 @@ jobs:

it_coverage_script_ubuntu:
docker:
- image: cimg/base:2020.01 # ubuntu based image
- image: cimg/base:2023.10 # ubuntu based image
- image: mockserver/mockserver
working_directory: ~/workdir
parameters:
Expand Down Expand Up @@ -187,13 +183,12 @@ jobs:
export CODACY_PROJECT_TOKEN='TEST_CODACY_PROJECT_TOKEN'
export TEST_CODACY_REPORT_PATH='integration-tests/test_dotcover.xml'
export CODACY_REPORTER_TMP_FOLDER=".codacy-coverage"
sh get.sh report --commit-uuid 'e9bef8a69a439bd601c37c0557277572425203a7' -r $TEST_CODACY_REPORT_PATH --codacy-api-base-url http://localhost:1080
sh get.sh report --commit-uuid 'e9bef8a69a439bd601c37c0557277572425203a7' -r $TEST_CODACY_REPORT_PATH --codacy-api-base-url http://localhost:1080
export ERROR_CODE=$?
if [ $ERROR_CODE -ne 0 ]; then echo "expected an error code 0 and got $ERROR_CODE instead"; exit 1; fi
echo "test completed with the expected error code: 0"

workflows:
version: 2
compile_test_deploy:
jobs:
- codacy/wait_for_workflows:
Expand Down
2 changes: 1 addition & 1 deletion get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ is_self_hosted_instance() {
os_name=$(uname)

# This version should be one that matches the latest self hosted release.
SELF_HOSTED_CODACY_REPORTER_VERSION="13.13.0"
SELF_HOSTED_CODACY_REPORTER_VERSION="13.13.9"

# Find the latest version in case is not specified
if [ -z "$CODACY_REPORTER_VERSION" ] || [ "$CODACY_REPORTER_VERSION" = "latest" ]; then
Expand Down