diff --git a/.travis.yml b/.travis.yml index 2f19043be5..ab59605549 100644 --- a/.travis.yml +++ b/.travis.yml @@ -49,6 +49,7 @@ install: script: - set -e + - export TRILLIAN_SQL_DRIVER=mysql - cd $HOME/gopath/src/github.com/google/certificate-transparency-go - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PRESUBMIT_OPTS=--no-linters; fi - ./scripts/presubmit.sh ${PRESUBMIT_OPTS} diff --git a/trillian/integration/ct_integration_test.go b/trillian/integration/ct_integration_test.go index 1c352840a7..876d04f1ab 100644 --- a/trillian/integration/ct_integration_test.go +++ b/trillian/integration/ct_integration_test.go @@ -28,6 +28,7 @@ import ( "github.com/google/certificate-transparency-go/trillian/ctfe" "github.com/google/certificate-transparency-go/trillian/ctfe/configpb" "github.com/google/trillian/crypto/keyspb" + "github.com/google/trillian/storage/testdb" // Register PEMKeyFile and PrivateKey ProtoHandlers _ "github.com/google/trillian/crypto/keys/der/proto" @@ -83,6 +84,10 @@ const ( ) func TestInProcessCTIntegration(t *testing.T) { + if provider := testdb.Default(); !provider.IsMySQL() { + t.Skipf("Skipping CT integration test, SQL driver is %q", provider.Driver) + } + pubKeyDER, err := loadPublicKey(pubKeyPEMFile) if err != nil { t.Fatalf("Could not load public key: %v", err)