Skip to content

Commit 4d2035c

Browse files
authored
Merge pull request #128 from dolmen/improve-Travis-CI
Use gopkg.in import path for Travis and examples
2 parents 5e7c2fb + 3af22b4 commit 4d2035c

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
language: go
22

3+
go_import_path: gopkg.in/DATA-DOG/go-sqlmock.v1
4+
35
go:
46
- 1.2.x
57
- 1.3.x
@@ -12,6 +14,8 @@ go:
1214
- 1.10.x
1315
# - tip # sadly fails most of the times
1416

17+
sudo: false
18+
1519
script:
1620
- go vet
1721
- test -z "$(go fmt ./...)" # fail if not formatted properly

examples/basic/basic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/DATA-DOG/go-sqlmock"
7+
"gopkg.in/DATA-DOG/go-sqlmock.v1"
88
)
99

1010
// a successful case

examples/blog/blog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"net/http/httptest"
99
"testing"
1010

11-
"github.com/DATA-DOG/go-sqlmock"
11+
"gopkg.in/DATA-DOG/go-sqlmock.v1"
1212
)
1313

1414
func (a *api) assertJSON(actual []byte, data interface{}, t *testing.T) {

examples/orders/orders_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"testing"
66

7-
"github.com/DATA-DOG/go-sqlmock"
7+
"gopkg.in/DATA-DOG/go-sqlmock.v1"
88
)
99

1010
// will test that order with a different status, cannot be cancelled

0 commit comments

Comments
 (0)