From 44a613b789492555310d13c15c55b6d3fea3fc1c Mon Sep 17 00:00:00 2001 From: Kevin Chen Date: Wed, 23 Aug 2023 12:56:53 -0400 Subject: [PATCH] +git-branchless --- projects/crates.io/git-branchless/package.yml | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 projects/crates.io/git-branchless/package.yml diff --git a/projects/crates.io/git-branchless/package.yml b/projects/crates.io/git-branchless/package.yml new file mode 100644 index 00000000..4c7e896c --- /dev/null +++ b/projects/crates.io/git-branchless/package.yml @@ -0,0 +1,30 @@ +distributable: + url: https://github.com/arxanas/git-branchless/archive/refs/tags/v{{ version }}.tar.gz + strip-components: 1 + +provides: + - bin/git-branchless + +versions: + github: arxanas/git-branchless + strip: /v/ + +build: + working-directory: git-branchless + 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 branchless init + - test "$(git branchless --version)" = "git-branchless-opts {{version}}" + - git branchless init --uninstall + - cd .. + - rm -rf nocode