Skip to content

Commit

Permalink
Merge pull request nsqio#888 from ploxiln/test_matrix_more
Browse files Browse the repository at this point in the history
test more go versions on Travis CI
  • Loading branch information
mreiferson authored Apr 17, 2017
2 parents 932b3fa + 7dac527 commit 71734e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
language: go
go:
- 1.7.5
- 1.8
- 1.6.x
- 1.7.x
- 1.8.x
env:
- GOARCH=amd64
- GOARCH=386
Expand Down
3 changes: 2 additions & 1 deletion test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ GOMAXPROCS=1 go test -timeout 90s ./...
GOMAXPROCS=4 go test -timeout 90s -race ./...

# no tests, but a build is something
for dir in $(find apps bench -maxdepth 1 -type d) nsqadmin; do
for dir in apps/*/ bench/*/; do
dir=${dir%/}
if grep -q '^package main$' $dir/*.go 2>/dev/null; then
echo "building $dir"
go build -o $dir/$(basename $dir) ./$dir
Expand Down

0 comments on commit 71734e9

Please sign in to comment.