Skip to content

Commit

Permalink
chore: use -race for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Jul 23, 2019
1 parent bd7c7a7 commit 9cfaba2
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.PHONY: test
test:
go test -v ./...
cd examples; go test -v ./...
set -e; for dir in `find . -type f -name "go.mod" | sed -r 's@/[^/]+$$@@' | sort | uniq`; do \
(set -xe; cd $$dir; go test -v -cover -race ./...); \
done

.PHONY: tidy-all
tidy-all:
Expand Down
2 changes: 1 addition & 1 deletion cmd/pertify/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module moul.io/cmd/pertify

go 1.12

require moul.io/graphman v0.0.0
require moul.io/graphman v1.0.0

require (
github.com/pkg/errors v0.8.1
Expand Down
2 changes: 1 addition & 1 deletion cmd/pertify/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func main() {
Action: graph,
}
if err := app.Run(os.Args); err != nil {
log.Fatal("error: %v", err)
log.Fatalf("error: %v", err)
}
}

Expand Down
2 changes: 1 addition & 1 deletion examples/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module moul.io/graphman/examples

go 1.12

require moul.io/graphman v0.0.0
require moul.io/graphman v1.0.0

require moul.io/graphman/viz v0.0.0

Expand Down
5 changes: 4 additions & 1 deletion viz/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ module moul.io/graphman/viz

go 1.12

require github.com/awalterschulze/gographviz v0.0.0-20190522210029-fa59802746ab
require (
github.com/awalterschulze/gographviz v0.0.0-20190522210029-fa59802746ab
moul.io/graphman v1.0.0
)
4 changes: 4 additions & 0 deletions viz/go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
github.com/awalterschulze/gographviz v0.0.0-20190522210029-fa59802746ab h1:+cdNqtOJWjvepyhxy23G7z7vmpYCoC65AP0nqi1f53s=
github.com/awalterschulze/gographviz v0.0.0-20190522210029-fa59802746ab/go.mod h1:GEV5wmg4YquNw7v1kkyoX9etIk8yVmXj+AkDHuuETHs=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
moul.io/graphman v1.0.0 h1:vXCIHlGMdzuZKb1gBByRj38y7e7PO2rfc/DDK4zYnzA=
moul.io/graphman v1.0.0/go.mod h1:7OpdQsfE4ibHqHP+Ir1VAUd4p5j25n4xU9bhJvQ+F0g=

0 comments on commit 9cfaba2

Please sign in to comment.