FTS4 is not available on Trusty

This commit is contained in:
Zbigniew Mandziejewicz 2016-04-22 21:13:07 +08:00
parent b1cb24388d
commit 5829556696
4 changed files with 8 additions and 3 deletions

View File

@ -14,4 +14,4 @@ before_install:
- go get golang.org/x/tools/cmd/cover
script:
- $HOME/gopath/bin/goveralls
- go test -v . -tags "libsqlite3"
- go test . -a -tags "libsqlite3"

View File

@ -1,5 +1,6 @@
#!/bin/bash
if [[ $TRAVIS_OS_NAME == "osx" ]]; then
brew install libsqlite3
brew update
brew install sqlite3
fi

View File

@ -38,6 +38,7 @@ FAQ
* Want to build go-sqlite3 with libsqlite3 on OS X.
Install sqlite3 from homebrew: `brew install sqlite3`
Use `go build --tags "libsqlite3 darwin"`
* Want to build go-sqlite3 with icu extension.

View File

@ -93,7 +93,10 @@ func TestFTS4(t *testing.T) {
_, err = db.Exec("DROP TABLE foo")
_, err = db.Exec("CREATE VIRTUAL TABLE foo USING fts4(tokenize=unicode61, id INTEGER PRIMARY KEY, value TEXT)")
if err != nil {
switch {
case err != nil && err.Error() == "unknown tokenizer: unicode61":
t.Skip("FTS4 not supported")
case err != nil:
t.Fatal("Failed to create table:", err)
}