Skip to content

Commit

Permalink
Merge pull request #95 from llir/travis
Browse files Browse the repository at this point in the history
travis: fix build for Go 1.13 (tip)
  • Loading branch information
mewmew committed Jul 2, 2019
2 parents dd9cf49 + 39d20e5 commit 3d5d645
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- "1.11"
- "1.12"
- tip

notifications:
Expand All @@ -20,7 +20,8 @@ before_script:
- go get golang.org/x/tools/cmd/goimports
- go get golang.org/x/lint/golint
- go get github.com/mattn/goveralls
- go get github.com/golangci/golangci-lint/cmd/golangci-lint
# TODO: re-enable when https://github.com/golangci/golangci-lint/issues/595 is resolved.
#- go get github.com/golangci/golangci-lint/cmd/golangci-lint
- wget https://raw.githubusercontent.com/mewmew/ci/master/ci_checks.sh
- chmod +x ci_checks.sh

Expand Down
6 changes: 3 additions & 3 deletions ir/inst_aggregate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ func TestTypeCheckInstExtractValue(t *testing.T) {

// Should succeed.
var v value.Value = constant.NewUndef(structType)
v.String()
_ = v.String()
v = NewInsertValue(v, constant.NewInt(types.I32, 1), 0)
v.String()
_ = v.String()
v = NewInsertValue(v, constant.NewInt(types.I64, 1), 1)
v.String()
_ = v.String()

var panicErr error
func() {
Expand Down
2 changes: 1 addition & 1 deletion ir/inst_conversion_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestTypeCheckTrunc(t *testing.T) {
func() {
defer func() { panicErr = recover().(error) }()
trunc := NewTrunc(zeroVal, c.toTyp)
trunc.String()
_ = trunc.String()
panic(errOK)
}()
got := panicErr.Error()
Expand Down

0 comments on commit 3d5d645

Please sign in to comment.