Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVas Sudanagunta <vas@commonkarma.org>2018-01-03 04:19:16 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-01-11 19:22:12 +0300
commitd5803da1befba5446d1b2c1ad16f6467dc7b3991 (patch)
treea5d4416594aea0bdd266751bdc7744e1c49e612e /magefile.go
parent27c77e1ab9d4a4dbc50955ecbfef121da73633d5 (diff)
Support offline builds
Diffstat (limited to 'magefile.go')
-rw-r--r--magefile.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/magefile.go b/magefile.go
index d74aaa3ee..964bfeb6f 100644
--- a/magefile.go
+++ b/magefile.go
@@ -45,19 +45,16 @@ func Vendor() error {
// Build hugo binary
func Hugo() error {
- mg.Deps(Vendor)
return sh.RunWith(flagEnv(), goexe, "build", "-ldflags", ldflags, packageName)
}
// Build hugo binary with race detector enabled
func HugoRace() error {
- mg.Deps(Vendor)
return sh.RunWith(flagEnv(), goexe, "build", "-race", "-ldflags", ldflags, packageName)
}
// Install hugo binary
func Install() error {
- mg.Deps(Vendor)
return sh.RunWith(flagEnv(), goexe, "install", "-ldflags", ldflags, packageName)
}
@@ -115,13 +112,11 @@ func Test386() error {
// Run tests
func Test() error {
- mg.Deps(getDep)
return sh.Run(goexe, "test", "./...")
}
// Run tests with race detector
func TestRace() error {
- mg.Deps(getDep)
return sh.Run(goexe, "test", "-race", "./...")
}