1
0
mirror of https://github.com/zhashkevych/go-sqlxmock.git synced 2024-11-24 08:12:13 +02:00

Merge pull request #128 from dolmen/improve-Travis-CI

Use gopkg.in import path for Travis and examples
This commit is contained in:
Gediminas Morkevicius 2018-07-12 16:15:28 +03:00 committed by GitHub
commit 4d2035c879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 3 deletions

View File

@ -1,5 +1,7 @@
language: go
go_import_path: gopkg.in/DATA-DOG/go-sqlmock.v1
go:
- 1.2.x
- 1.3.x
@ -12,6 +14,8 @@ go:
- 1.10.x
# - tip # sadly fails most of the times
sudo: false
script:
- go vet
- test -z "$(go fmt ./...)" # fail if not formatted properly

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/DATA-DOG/go-sqlmock"
"gopkg.in/DATA-DOG/go-sqlmock.v1"
)
// a successful case

View File

@ -8,7 +8,7 @@ import (
"net/http/httptest"
"testing"
"github.com/DATA-DOG/go-sqlmock"
"gopkg.in/DATA-DOG/go-sqlmock.v1"
)
func (a *api) assertJSON(actual []byte, data interface{}, t *testing.T) {

View File

@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/DATA-DOG/go-sqlmock"
"gopkg.in/DATA-DOG/go-sqlmock.v1"
)
// will test that order with a different status, cannot be cancelled