Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyutarow committed May 23, 2021
1 parent 599c457 commit 643dfaf
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Makefile.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
[tasks.build]
command = "cargo"
args = ["build", "--bin", "partiql-cli"]

[tasks.test]
command = "cargo"
args = ["test"]
dependencies = ["build"]

[tasks.release-cli]
script = '''
cargo build --release --bin partiql-cli
Expand All @@ -17,3 +26,19 @@ git tag v$(version-make show Cargo.toml)
script = '''
cargo fix
'''

[tasks.run-q1]
script = '''
alias pq="./target/debug/partiql-cli"
cat samples/q1.env | pq from --to json | jq > samples/q1.json
pq sql -f samples/q1.json -q "$(cat samples/q1.sql)" | pq from -t json | jq
'''
dependencies = ["build"]

[tasks.run-q2]
script = '''
alias pq="./target/debug/partiql-cli"
cat samples/q2.env | pq from --to json | jq > samples/q2.json
pq sql -f samples/q2.json -q "$(cat samples/q2.sql)" | pq from -t json | jq
'''
dependencies = ["build"]

0 comments on commit 643dfaf

Please sign in to comment.