mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
new file: projects/wilfred.me.uk/difftastic/package.yml
This commit is contained in:
parent
71383751f8
commit
23fabce25f
30
projects/wilfred.me.uk/difftastic/package.yml
Normal file
30
projects/wilfred.me.uk/difftastic/package.yml
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
distributable:
|
||||||
|
url: https://github.com/Wilfred/difftastic/archive/refs/tags/{{version.tag}}.tar.gz
|
||||||
|
strip-components: 1
|
||||||
|
|
||||||
|
versions:
|
||||||
|
github: Wilfred/difftastic
|
||||||
|
|
||||||
|
build:
|
||||||
|
dependencies:
|
||||||
|
rust-lang.org: ^1.65
|
||||||
|
rust-lang.org/cargo: '*'
|
||||||
|
script:
|
||||||
|
- cargo install $ARGS
|
||||||
|
env:
|
||||||
|
ARGS:
|
||||||
|
- --locked
|
||||||
|
- --root={{prefix}}
|
||||||
|
- --path=.
|
||||||
|
|
||||||
|
provides:
|
||||||
|
- bin/difft
|
||||||
|
|
||||||
|
test:
|
||||||
|
script:
|
||||||
|
- echo "print(42)" > a.py
|
||||||
|
- echo "print(43)" > b.py
|
||||||
|
- difft --color never --width 80 a.py b.py | grep "$SEARCH"
|
||||||
|
- difft --version | grep {{version}}
|
||||||
|
env:
|
||||||
|
SEARCH: 1 print(42) 1 print(43)
|
Loading…
Reference in a new issue