Skip to content

Commit 081a745

Browse files
committed
skip test under travis
1 parent 19b056d commit 081a745

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
sudo: false
12
language: go
2-
33
install: go get -t ./...
4-
54
script: make ci
6-
7-
sudo: false
8-
95
go:
106
- "1.10"
7+
addons:
8+
apt:
9+
update: true
10+
packages:
11+
- sqlite3

ci/expr_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
package ci
44

55
import (
6+
"os"
67
"testing"
78

89
"github.com/alicebob/sqlittle"
910
)
1011

1112
func TestExprCol(t *testing.T) {
1213
// index with expression column
14+
if os.Getenv("TRAVIS") != "" {
15+
t.Skip("travis has old sqlite3 version")
16+
}
1317
Compare(
1418
t,
1519
`

ci/support_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ func Compare(
3838
sqlSelect string,
3939
little func(*testing.T, *sqlittle.DB) [][]string,
4040
) {
41+
t.Helper()
42+
4143
file, close := tmpfile(t)
4244
defer close()
4345

0 commit comments

Comments
 (0)