add some tests
This commit is contained in:
parent
a52e4b4dde
commit
40af4997b0
4 changed files with 136 additions and 4 deletions
47
Makefile
Normal file
47
Makefile
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
# Default, which is handy to run before committing code
|
||||
all: fmt lint test
|
||||
|
||||
# What to have CI systems run
|
||||
ci: lint test
|
||||
|
||||
# Final pre-flight checks then deploy everywhere!
|
||||
# TODO
|
||||
# shipit: all build staging prod
|
||||
|
||||
# version := $(shell yq -p toml .tool.poetry.version < pyproject.toml)
|
||||
|
||||
|
||||
init:
|
||||
poetry install
|
||||
|
||||
# Everything to get the dev env set up
|
||||
dev: init
|
||||
|
||||
fmt:
|
||||
cargo fmt
|
||||
|
||||
lint:
|
||||
cargo clippy
|
||||
|
||||
test:
|
||||
cargo test
|
||||
|
||||
|
||||
test-watch:
|
||||
find . -name '*rs' -or -name '*html' -or -name Cargo.lock | entr -r -c make test
|
||||
|
||||
clean:
|
||||
cargo clean
|
||||
|
||||
# TODO?
|
||||
# docker:
|
||||
# podman build -t nickpegg/photojawn . --build-arg GIT_COMMIT=$(shell git rev-parse --short HEAD)
|
||||
|
||||
dist:
|
||||
cargo build --release
|
||||
|
||||
# TODO
|
||||
# release: dist
|
||||
# git push --tags
|
||||
# gh release create --verify-tag v$(version)
|
||||
# gh release upload v$(version) dist/photojawn-$(version)-*whl $(foreach plat,$(scie_platforms),dist/photojawn-$(plat))
|
||||
Loading…
Add table
Add a link
Reference in a new issue