Skip to content

Commit

Permalink
Update Travis to test multiple golang versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dajohi authored and davecgh committed Aug 16, 2016
1 parent f438166 commit 6cf5744
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
language: go
go: 1.2
go:
- 1.5.4
- 1.6.3
- 1.7
install:
- go get -v code.google.com/p/go.tools/cmd/cover
- go get -v golang.org/x/tools/cmd/cover
script:
- go test -v -tags=disableunsafe ./spew
- go test -v -tags=testcgo ./spew -covermode=count -coverprofile=profile.cov
Expand Down
3 changes: 2 additions & 1 deletion spew/dumpcgo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,11 @@ func addCgoDumpTests() {
v3Len := fmt.Sprintf("%d", v3l)
v3Cap := fmt.Sprintf("%d", v3c)
v3t := "[6]testdata._Ctype_unsignedchar"
v3t2 := "[6]testdata._Ctype_uchar"
v3s := "(len=" + v3Len + " cap=" + v3Cap + ") " +
"{\n 00000000 74 65 73 74 33 00 " +
" |test3.|\n}"
addDumpTest(v3, "("+v3t+") "+v3s+"\n")
addDumpTest(v3, "("+v3t+") "+v3s+"\n", "("+v3t2+") "+v3s+"\n")

// C signed char array.
v4, v4l, v4c := testdata.GetCgoSignedCharArray()
Expand Down

0 comments on commit 6cf5744

Please sign in to comment.