mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 00:15:07 +03:00
+sqruff (#6607)
* +sqruff * rename, don't use nightly, tests --------- Co-authored-by: Jacob Heider <jacob@pkgx.dev>
This commit is contained in:
parent
d650027aa8
commit
6459c5a07f
1 changed files with 29 additions and 0 deletions
29
projects/quary.dev/sqruff/package.yml
Normal file
29
projects/quary.dev/sqruff/package.yml
Normal file
|
@ -0,0 +1,29 @@
|
|||
distributable:
|
||||
url: https://github.com/quarylabs/sqruff/archive/refs/tags/{{ version.tag }}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: quarylabs/sqruff
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
rust-lang.org: ^1.79
|
||||
rust-lang.org/cargo: '*'
|
||||
script: cargo install sqruff --locked --path crates/cli --root {{prefix}}
|
||||
|
||||
provides:
|
||||
- bin/bench
|
||||
- bin/sqruff
|
||||
|
||||
test:
|
||||
- test "$(sqruff -V)" = "sqruff {{version}}"
|
||||
- run: sqruff lint $FIXTURE
|
||||
fixture:
|
||||
extname: sql
|
||||
content: SELECT 1;
|
||||
- run: if sqruff lint $FIXTURE; then true; fi
|
||||
fixture:
|
||||
extname: sql
|
||||
content: |
|
||||
SELECT 1
|
||||
SELECT 2
|
Loading…
Reference in a new issue