mirror of
https://github.com/ivabus/pantry
synced 2024-11-27 02:35:08 +03:00
0.4.0 changes some things; we must adapt
This commit is contained in:
parent
0d76b77610
commit
168df21c94
1 changed files with 19 additions and 4 deletions
|
@ -10,10 +10,25 @@ build:
|
||||||
rust-lang.org/cargo: '*'
|
rust-lang.org/cargo: '*'
|
||||||
script: |
|
script: |
|
||||||
cd ./prql-compiler
|
cd ./prql-compiler
|
||||||
cargo install --path . --root {{prefix}}
|
cargo install --path . --root {{prefix}} --all-features
|
||||||
|
|
||||||
test:
|
cd {{prefix}}/bin
|
||||||
echo "from employees | filter has_dog | select salary" | prql-compiler compile
|
|
||||||
|
# Bin got renamed; this is one way to keep ourselves working
|
||||||
|
if test {{version.major}} -eq 0 -a {{version.minor}} -lt 4; then
|
||||||
|
ln -s prql-compiler prqlc
|
||||||
|
else
|
||||||
|
ln -s prqlc prql-compiler
|
||||||
|
fi
|
||||||
|
|
||||||
|
test: |
|
||||||
|
if test {{version.major}} -eq 0 -a {{version.minor}} -lt 4; then
|
||||||
|
COMPILER=prql-compiler
|
||||||
|
else
|
||||||
|
COMPILER=prqlc
|
||||||
|
fi
|
||||||
|
echo "from employees | filter has_dog | select salary" | $COMPILER compile
|
||||||
|
|
||||||
provides:
|
provides:
|
||||||
- bin/prql-compiler
|
- bin/prql-compiler
|
||||||
|
- bin/prqlc
|
Loading…
Reference in a new issue