Skip to content

Commit

Permalink
ci: update bats and zot versions
Browse files Browse the repository at this point in the history
Update Makefile to bump up zot version
Update Makefile to include a recipe to install latest bats

Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Jan 10, 2024
1 parent d54e250 commit edbd668
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ REGCLIENT := $(TOOLS_D)/bin/regctl
REGCLIENT_VERSION := v0.5.1
export SKOPEO = $(TOOLS_D)/bin/skopeo
export SKOPEO_VERSION = 1.9.3
export BATS = $(TOOLS_D)/bin/bats
BATS_VERSION := v1.10.0
# OCI registry
ZOT := $(TOOLS_D)/bin/zot
ZOT_VERSION := v2.0.0-rc6
ZOT_VERSION := v2.0.0
export PATH := $(TOOLS_D)/bin:$(PATH)

GOLANGCI_LINT_VERSION = v1.54.2
GOLANGCI_LINT = $(TOOLS_D)/golangci-lint/$(GOLANGCI_LINT_VERSION)/golangci-lint
Expand Down Expand Up @@ -138,6 +141,12 @@ $(SKOPEO):
cd $(TOP_LEVEL); \
rm -rf $$tmpdir;

$(BATS):
rm -rf bats-core; \
git clone -b $(BATS_VERSION) https://github.com/bats-core/bats-core.git; \
cd bats-core; ./install.sh $(TOOLS_D); cd ..; \
rm -rf bats-core

TEST?=$(patsubst test/%.bats,%,$(wildcard test/*.bats))
PRIVILEGE_LEVEL?=

Expand Down
2 changes: 0 additions & 2 deletions install-build-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ set -o errexit

installdeps_fedora() {
sudo dnf install \
bats \
jq \
lxc-devel \
libcap-devel \
Expand All @@ -24,7 +23,6 @@ installdeps_fedora() {
installdeps_ubuntu() {
sudo add-apt-repository -y ppa:project-machine/squashfuse
sudo apt -yy install \
bats \
build-essential \
cryptsetup-bin \
jq \
Expand Down

0 comments on commit edbd668

Please sign in to comment.