2020-10-03 10:54:09 +08:00
|
|
|
task "install-deps" {
|
|
|
|
description = "Install all of package dependencies"
|
|
|
|
pipeline = [
|
2021-08-30 23:18:50 +08:00
|
|
|
"go get -v {{.files}}",
|
2020-10-03 10:54:09 +08:00
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
task "tests" {
|
|
|
|
description = "Run the test suite"
|
2021-08-30 23:18:50 +08:00
|
|
|
command = "go test -v {{.files}}"
|
|
|
|
environment = {
|
2020-10-03 10:54:09 +08:00
|
|
|
GOFLAGS = "-mod=vendor"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-30 23:18:50 +08:00
|
|
|
variables = {
|
2020-10-03 10:54:09 +08:00
|
|
|
files = "$(go list -v ./... | grep -iEv \"tests|examples\")"
|
|
|
|
}
|
|
|
|
|