mage: Skip Test386 on non-AMD64 architectures - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit c6d69d0c95c42915956c210dbac8b884682d4a3e
DIR parent c3d433af56071d42aeb3f85854bd30db64ed70b8
HTML Author: Anthony Fok <foka@debian.org>
Date: Thu, 31 Oct 2019 18:04:54 -0600
mage: Skip Test386 on non-AMD64 architectures
This is to allow "mage check" to run on arm64 on Travis CI.
Diffstat:
M magefile.go | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
DIR diff --git a/magefile.go b/magefile.go
@@ -134,7 +134,11 @@ func Check() {
return
}
- mg.Deps(Test386)
+ if runtime.GOARCH == "amd64" {
+ mg.Deps(Test386)
+ } else {
+ fmt.Printf("Skip Test386 on %s\n", runtime.GOARCH)
+ }
mg.Deps(Fmt, Vet)