mirror of
https://github.com/go-task/task.git
synced 2026-06-11 09:51:50 +00:00
add regression test for SIGINT behavior
See go-task/task/#458 Helper (sleepit) and test code based on https://github.com/marco-m/timeit
This commit is contained in:
committed by
Wes McNamee
parent
cdff0c60d9
commit
bffb6e1a07
@@ -45,6 +45,7 @@ tasks:
|
||||
desc: Cleans temp files and folders
|
||||
cmds:
|
||||
- rm -rf dist/
|
||||
- rm -rf tmp/
|
||||
|
||||
lint:
|
||||
desc: Runs golint
|
||||
@@ -52,9 +53,15 @@ tasks:
|
||||
- golint {{catLines .GO_PACKAGES}}
|
||||
silent: true
|
||||
|
||||
sleepit:
|
||||
desc: Builds the sleepit test helper
|
||||
dir: tmp
|
||||
cmds:
|
||||
- go build ../internal/sleepit
|
||||
|
||||
test:
|
||||
desc: Runs test suite
|
||||
deps: [install]
|
||||
deps: [install, sleepit]
|
||||
cmds:
|
||||
- go test {{catLines .GO_PACKAGES}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user