Skip to content

Commit

Permalink
Make lybuild/lytest scripts for git rebase --exec
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-leapyear committed Sep 25, 2021
1 parent 300df7f commit ebb0c77
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
8 changes: 8 additions & 0 deletions bin/lybuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env zsh

# defined in terms of lytest because no way to undo `--no-run-tests` with another flag
function lybuild() {
lytest --no-run-tests "$@"
}

lybuild "$@"
7 changes: 7 additions & 0 deletions bin/lytest
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env zsh

function lytest() {
bin/stack.sh build --test --bench --no-run-benchmarks --no-dump-logs --fast "$@"
}

lytest "$@"
2 changes: 0 additions & 2 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ function chext {

############### LeapYear helpers ###############

alias lybuild='lytest --no-run-tests' # defined in terms of lytest because no way to undo `--no-run-tests` with another flag
alias lytest='bin/stack.sh build --test --bench --no-run-benchmarks --no-dump-logs --fast'
alias lyexec='bin/stack.sh exec --'

function export_nexus() {
Expand Down

0 comments on commit ebb0c77

Please sign in to comment.