.PHONY: build test test-real test-oci-pull-conformance lint docker-build install-systemd build-wheel release-patch release-minor release-major

build:
	cargo build --release

test:
	cargo test

test-real:
	cargo test --test real_registry -- --ignored --test-threads=1

test-oci-pull-conformance:
	bash scripts/run_oci_pull_conformance.sh

lint:
	cargo clippy -- -D warnings
	cargo fmt -- --check

docker-build:
	docker build --pull --tag drayage:ci .

install-systemd:
	bash scripts/install_systemd.sh

build-wheel:
	maturin build --release --strip

release-patch:
	vership bump patch

release-minor:
	vership bump minor

release-major:
	vership bump major
