diff --git a/.travis.yml b/.travis.yml index 5439132bc..825bad7ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,26 +1,38 @@ language: go go: - - "1.11" - - "1.12" - - "1.13" - - tip + - "1.11" + - "1.12" + - "1.13" + - tip os: - - osx - + - osx +env: + jobs: + - GOARCH=386 + - GOARCH=amd64 + global: + - secure: CRkV2+/jlO0gXzzS50XGxfMS117FNwiVjxNY/LeWq06RKD+dDCPxTJl3JCNe3l0cYEPAglV2uMMYukDiTqJ7e+HI4nh4N4mv6lwx39N8dAvJe1x5ITS2T4qk4kTjuQb1Q1vw/ZOxoQqmvNKj2uRmBdJ/HHmysbRJ1OzCWML3OXdUwJf0AYlJzTjpMfkOKr7sTtE4rwyyQtd4tKH1fGdurgI9ZuFd9qvYxK2qcJhsQ6CNqMXt+7FkVkN1rIPmofjjBTNryzUr4COFXuWH95aDAif19DeBW4lbNgo1+FpDsrgmqtuhl6NAuptI8q/imow2KXBYJ8JPXsxW8DVFj0IIp0RCd3GjaEnwBEbxAyiIHLfW7AudyTS/dJOvZffPqXnuJ8xj3OPIdNe4xY0hWl8Ju2HhKfLOAHq7VadHZWd3IHLil70EiL4/JLD1rNbMImUZisFaA8pyrcIvYYebjOnk4TscwKFLedClRSX1XsMjWWd0oykQtrdkHM2IxknnBpaLu7mFnfE07f6dkG0nlpyu4SCLey7hr5FdcEmljA0nIxTSYDg6035fQkBEAbe7hlESOekkVNT9IZPwG+lmt3vU4ofi6NqNbJecOuSB+h36IiZ9s4YQtxYNnLgW14zjuFGGyT5smc3IjBT7qngDjKIgyrSVoRkY/8udy9qbUgvBeW8= + + jobs: allow_failures: - go: tip + exclude: + # Exclude builds for 386 architecture on go 1.11, 1.12 and tip + # Since we don't want it to run for 32 bit + - go: "1.11" + env: GOARCH=386 + - go: "1.12" + env: GOARCH=386 + - go: tip + env: GOARCH=386 notifications: email: false slack: secure: X7uBLWYbuUhf8QFE16CoS5z7WvFR8EN9j6cEectMW6mKZ3vwXGwVXRIPsg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EiL4/JLD1rNbMImUZisFaA8pyrcIvYYebjOnk4TscwKFLedClRSX1XsMjWWd0oykQtrdkHM2IxknnBpaLu7mFnfE07f6dkG0nlpyu4SCLey7hr5FdcEmljA0nIxTSYDg6035fQkBEAbe7hlESOekkVNT9IZPwG+lmt3vU4ofi6NqNbJecOuSB+h36IiZ9s4YQtxYNnLgW14zjuFGGyT5smc3IjBT7qngDjKIgyrSVoRkY/8udy9qbUgvBeW8= - before_script: - go get github.com/mattn/goveralls script: diff --git a/db2_test.go b/db2_test.go index d9952af45..56d9ca145 100644 --- a/db2_test.go +++ b/db2_test.go @@ -23,6 +23,7 @@ import ( "fmt" "io/ioutil" "log" + "math" "math/rand" "os" "path" @@ -310,7 +311,7 @@ func TestPushValueLogLimit(t *testing.T) { for i := 0; i < 32; i++ { if i == 4 { - v := make([]byte, 2<<30) + v := make([]byte, math.MaxInt32) err := db.Update(func(txn *Txn) error { return txn.SetEntry(NewEntry([]byte(key(i)), v)) }) diff --git a/levels_test.go b/levels_test.go index b7554fbd0..688e3d64d 100644 --- a/levels_test.go +++ b/levels_test.go @@ -393,7 +393,7 @@ func TestDiscardTs(t *testing.T) { func TestDiscardFirstVersion(t *testing.T) { opt := DefaultOptions("") opt.NumCompactors = 0 - opt.NumVersionsToKeep = math.MaxUint32 + opt.NumVersionsToKeep = math.MaxInt32 opt.managedTxns = true runBadgerTest(t, &opt, func(t *testing.T, db *DB) { diff --git a/table/builder_test.go b/table/builder_test.go index 9650a9275..76296562e 100644 --- a/table/builder_test.go +++ b/table/builder_test.go @@ -80,11 +80,11 @@ func TestTableIndex(t *testing.T) { require.NoError(t, err, "unable to write to file") tbl, err := OpenTable(f, opt) + require.NoError(t, err, "unable to open table") if opt.DataKey == nil { // key id is zero if thre is no datakey. require.Equal(t, tbl.KeyID(), uint64(0)) } - require.NoError(t, err, "unable to open table") // Ensure index is built correctly require.Equal(t, blockCount, len(tbl.blockIndex))