Skip to content

Commit

Permalink
HDDS-12100. Move CI dependency versions out of _lib.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai committed Jan 18, 2025
1 parent e76d990 commit 06c4445
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
14 changes: 6 additions & 8 deletions hadoop-ozone/dev-support/checks/_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ _install_tool() {
}

install_bats() {
_install_tool bats bats-core-1.2.1/bin
_install_tool bats "bats-core-${BATS_VERSION}/bin"
}

_install_bats() {
curl -LSs https://github.com/bats-core/bats-core/archive/v1.2.1.tar.gz | tar -xz -f -
curl -LSs "https://github.com/bats-core/bats-core/archive/v${BATS_VERSION}.tar.gz" | tar -xz -f -
}

install_k3s() {
_install_tool k3s
}

_install_k3s() {
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION="v1.21.2+k3s1" sh -
curl -sfL https://get.k3s.io | INSTALL_K3S_VERSION="${K3S_VERSION}" sh -
sudo chmod a+r $KUBECONFIG
}

Expand All @@ -91,7 +91,7 @@ _install_flekszible() {
local os=$(uname -s)
local arch=$(uname -m)

curl -LSs https://github.com/elek/flekszible/releases/download/v2.3.0/flekszible_2.3.0_${os}_${arch}.tar.gz | tar -xz -f - -C bin
curl -LSs "https://github.com/elek/flekszible/releases/download/v${FLEKSZIBLE_VERSION}/flekszible_${FLEKSZIBLE_VERSION}_${os}_${arch}.tar.gz" | tar -xz -f - -C bin

chmod +x bin/flekszible
}
Expand All @@ -101,8 +101,6 @@ install_hugo() {
}

_install_hugo() {
: ${HUGO_VERSION:=0.83.1}

local os=$(uname -s)
local arch=$(uname -m)

Expand Down Expand Up @@ -143,11 +141,11 @@ _install_robot() {
}

install_spotbugs() {
_install_tool spotbugs spotbugs-3.1.12/bin
_install_tool spotbugs "spotbugs-${SPOTBUGS_VERSION}/bin"
}

_install_spotbugs() {
curl -LSs https://repo.maven.apache.org/maven2/com/github/spotbugs/spotbugs/3.1.12/spotbugs-3.1.12.tgz | tar -xz -f -
curl -LSs "https://repo.maven.apache.org/maven2/com/github/spotbugs/spotbugs/${SPOTBUGS_VERSION}/spotbugs-${SPOTBUGS_VERSION}.tgz" | tar -xz -f -
}

download_hadoop_aws() {
Expand Down
2 changes: 2 additions & 0 deletions hadoop-ozone/dev-support/checks/bats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ set -u -o pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "${DIR}/../../.." || exit 1

: ${BATS_VERSION:="1.2.1"}

source "${DIR}/_lib.sh"

install_bats
Expand Down
2 changes: 2 additions & 0 deletions hadoop-ozone/dev-support/checks/docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ set -u -o pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "${DIR}/../../.." || exit 1

: ${HUGO_VERSION:=0.83.1}

source "${DIR}/_lib.sh"
install_hugo

Expand Down
1 change: 1 addition & 0 deletions hadoop-ozone/dev-support/checks/findbugs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR/../../.." || exit 1

: ${OZONE_WITH_COVERAGE:="false"}
: ${SPOTBUGS_VERSION:=3.1.12}

source "${DIR}/_lib.sh"

Expand Down
2 changes: 2 additions & 0 deletions hadoop-ozone/dev-support/checks/kubernetes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ set -u -o pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "$DIR/../../.." || exit 1

: ${FLEKSZIBLE_VERSION:="2.3.0"}
: ${K3S_VERSION:="v1.21.2+k3s1"}
: ${KUBECONFIG:=/etc/rancher/k3s/k3s.yaml}

export KUBECONFIG
Expand Down

0 comments on commit 06c4445

Please sign in to comment.