From bf301a21874ecc26ede63211ed3c281ddf2b4ec8 Mon Sep 17 00:00:00 2001 From: Kevin Chen Date: Wed, 23 Aug 2023 13:36:26 -0400 Subject: [PATCH] +git-tidy --- projects/crates.io/git-tidy/package.yml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 projects/crates.io/git-tidy/package.yml diff --git a/projects/crates.io/git-tidy/package.yml b/projects/crates.io/git-tidy/package.yml new file mode 100644 index 00000000..d59d5d28 --- /dev/null +++ b/projects/crates.io/git-tidy/package.yml @@ -0,0 +1,28 @@ +distributable: + url: https://github.com/drewwyatt/git-tidy/archive/refs/tags/v{{ version }}.tar.gz + strip-components: 1 + +provides: + - bin/git-tidy + +versions: + github: drewwyatt/git-tidy + strip: /v/ + +build: + dependencies: + rust-lang.org: '>=1.56' + rust-lang.org/cargo: '*' + script: | + cargo install --locked --path . --root {{prefix}} + +test: + dependencies: + git-scm.org: '*' + script: + - git clone https://github.com/kelseyhightower/nocode + - cd nocode + - git tidy + - test "$(git tidy --version)" = "git-tidy {{version}}" + - cd .. + - rm -rf nocode