Skip to content

Commit

Permalink
mage: Skip Check on Go 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Oct 21, 2017
1 parent db1a5af commit 133cfd1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"io/ioutil"
"os"
"path/filepath"
"runtime"
"strings"
"time"

Expand Down Expand Up @@ -95,6 +96,12 @@ func Docker() error {

// Run tests and linters
func Check() {
if strings.Contains(runtime.Version(), "1.8") {
// Go 1.8 doesn't play along with go test ./... and /vendor.
// We could fix that, but that would take time.
fmt.Printf("Skip Check on %s\n", runtime.Version())
return
}
mg.Deps(Test386, Fmt, Vet)
// don't run two tests in parallel, they saturate the CPUs anyway, and running two
// causes memory issues in CI.
Expand Down

0 comments on commit 133cfd1

Please sign in to comment.