mirror of
https://github.com/DATA-DOG/go-sqlmock.git
synced 2025-05-15 22:06:43 +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:
commit
4d2035c879
@ -1,5 +1,7 @@
|
|||||||
language: go
|
language: go
|
||||||
|
|
||||||
|
go_import_path: gopkg.in/DATA-DOG/go-sqlmock.v1
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.2.x
|
- 1.2.x
|
||||||
- 1.3.x
|
- 1.3.x
|
||||||
@ -12,6 +14,8 @@ go:
|
|||||||
- 1.10.x
|
- 1.10.x
|
||||||
# - tip # sadly fails most of the times
|
# - tip # sadly fails most of the times
|
||||||
|
|
||||||
|
sudo: false
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- go vet
|
- go vet
|
||||||
- test -z "$(go fmt ./...)" # fail if not formatted properly
|
- test -z "$(go fmt ./...)" # fail if not formatted properly
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/DATA-DOG/go-sqlmock"
|
"gopkg.in/DATA-DOG/go-sqlmock.v1"
|
||||||
)
|
)
|
||||||
|
|
||||||
// a successful case
|
// a successful case
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"testing"
|
"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) {
|
func (a *api) assertJSON(actual []byte, data interface{}, t *testing.T) {
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"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
|
// will test that order with a different status, cannot be cancelled
|
||||||
|
Loading…
x
Reference in New Issue
Block a user