From 80dfefbb5cac3372ed006b108efb133bd5cc4ef9 Mon Sep 17 00:00:00 2001 From: Alex Skrypnyk Date: Tue, 2 Jan 2024 21:25:52 +1100 Subject: [PATCH] Added Codecov uploader. --- Dockerfile | 8 ++++++++ goss.yaml | 7 +++++++ versions.sh | 1 + 3 files changed, 16 insertions(+) diff --git a/Dockerfile b/Dockerfile index 81a7965..97cf6a5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -169,6 +169,14 @@ RUN curl -L -o "/usr/local/bin/ahoy" "https://github.com/ahoy-cli/ahoy/releases/ ENV TASK_VERSION=3.33.1 RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -b /usr/local/bin "v$TASK_VERSION" +# Install Codecov reporter. +# @see https://github.com/codecov/uploader/releases +# renovate: datasource=github-releases depName=codecov/uploader extractVersion=^v(?.*)$ +ENV CODECOV_VERSION=0.7.1 +RUN curl -L -o "/usr/local/bin/codecov" "https://github.com/codecov/uploader/releases/download/v${CODECOV_VERSION}/codecov-linux" \ + && chmod +x /usr/local/bin/codecov \ + && codecov --version + # Install a stub for pygmy. # Some frameworks may require presence of tools that are not required in CI container. RUN ln -s /usr/bin/true /usr/local/bin/pygmy \ diff --git a/goss.yaml b/goss.yaml index fd1fe0b..bcd7635 100644 --- a/goss.yaml +++ b/goss.yaml @@ -35,6 +35,13 @@ command: stderr: [] timeout: 10000 + which codecov: + exit-status: 0 + stdout: + - /usr/local/bin/codecov + stderr: [] + timeout: 10000 + which composer: exit-status: 0 stdout: diff --git a/versions.sh b/versions.sh index 96147a3..b3a44e3 100755 --- a/versions.sh +++ b/versions.sh @@ -10,6 +10,7 @@ commands=( "aspell --version" "bats --version" "composer --version" + "codecov --version" "curl --version" "docker --version" "docker buildx version"