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