34 lines
709 B
Makefile
34 lines
709 B
Makefile
build:
|
|
#!/usr/bin/env bash
|
|
set -e
|
|
cargo fmt
|
|
cargo fmt --check
|
|
cargo hack clippy
|
|
cargo hack build
|
|
cargo hack test
|
|
cargo doc
|
|
# cargo test --example get
|
|
cargo mutants --jobs 4
|
|
|
|
self-test:
|
|
just test $PWD forgejo-todo-checker
|
|
|
|
test path repo:
|
|
GITHUB_WORKSPACE={{ path }} \
|
|
GITHUB_REPOSITORY=kemitix/{{ repo }} \
|
|
GITHUB_SERVER_URL=https://git.kemitix.net \
|
|
cargo run
|
|
|
|
next_version := `git-cliff --bumped-version | cut -b 2-`
|
|
|
|
@next:
|
|
echo "Next version: {{ next_version }}"
|
|
|
|
prep-release:
|
|
jj new -m"chore: release v{{ next_version }}"
|
|
cargo set-version "{{ next_version }}"
|
|
git-cliff -o CHANGELOG.md --bump
|
|
echo "Check CHANGELOG.md for next version"
|
|
jj diff
|
|
jj status
|
|
|