Skip to content

Commit

Permalink
Fix hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
pazone committed Feb 1, 2024
1 parent fbd57f2 commit 1903c32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ steps:

- label: "Unit tests - Ubuntu 22.04 ARM64"
key: "unit-tests-2204-arm64"
command: ".buildkite/scripts/steps/unit-tests.sh"
command: ".buildkite/xpack/elastic-agent/scripts/steps/unit-tests.sh"
artifact_paths:
- "build/TEST-go-unit.html"
- "build/TEST-go-unit.xml"
Expand Down
5 changes: 2 additions & 3 deletions .buildkite/xpack/elastic-agent/scripts/steps/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@ if [[ -z "${WORKSPACE-""}" ]]; then
fi

if [[ -z "${SETUP_MAGE_VERSION-""}" ]]; then
SETUP_MAGE_VERSION=$(grep -oe "SETUP_MAGE_VERSION\: [\"'].*[\"']" "$PIPELINE" | awk '{print $2}' | sed "s/'//g" )
SETUP_MAGE_VERSION="v0.5.0"
fi
if [[ -z "${SETUP_GVM_VERSION-""}" ]]; then
SETUP_GVM_VERSION=$(grep -oe "SETUP_GVM_VERSION\: [\"'].*[\"']" "$PIPELINE" | awk '{print $2}' | sed "s/'//g" )
SETUP_GVM_VERSION="1.14.0"
fi


getOSOptions() {
case $(uname | tr '[:upper:]' '[:lower:]') in
linux*)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if ($LASTEXITCODE -ne 0) {
Write-Host "--- Unit tests"
$env:TEST_COVERAGE = $true
$env:RACE_DETECTOR = $true
mage build unitTest
mage unitTest
# Copy coverage file to build directory so it can be downloaded as an artifact
# cp .\build\TEST-go-unit.cov coverage.out

Expand Down

0 comments on commit 1903c32

Please sign in to comment.