Skip to content

Commit a41c6eb

Browse files
authored
Merge pull request #9 from senseyeio/smotes/mountebank-v2.0
mountebank v2.0
2 parents 4cf6986 + 67b72dc commit a41c6eb

File tree

3,643 files changed

+151
-737735
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,643 files changed

+151
-737735
lines changed

.travis.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
sudo: required
22

33
services:
4-
- docker
4+
- docker
55

66
language: go
77

88
go:
9-
- 1.9
10-
- "1.10"
11-
- "1.11"
12-
- "1.12"
9+
- "1.10"
10+
- "1.11"
11+
- "1.12"
1312

14-
before_install:
15-
- make pull
16-
- make tools
13+
script: make unit && make integration
1714

18-
script:
19-
- make errcheck
20-
- make lint
21-
- make integration
15+
jobs:
16+
include:
17+
- stage: check
18+
install: go get golang.org/x/lint/golint github.com/kisielk/errcheck
19+
script: make lint && make errcheck
20+
go: "1.12" # only run source code analysis tools on latest version of Go

Gopkg.lock

Lines changed: 0 additions & 57 deletions
This file was deleted.

Gopkg.toml

Lines changed: 0 additions & 25 deletions
This file was deleted.

Makefile

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,24 @@
1-
GOPACKAGES := $(shell go list github.com/senseyeio/mbgo/...)
1+
GOPACKAGES := $(shell go list ./...)
2+
3+
.PHONY: default
4+
default: fmt lint unit
25

36
.PHONY: errcheck
47
errcheck:
58
@errcheck -asserts -blank -ignore 'io:[cC]lose' $(GOPACKAGES)
69

710
.PHONY: fmt
811
fmt:
9-
@for pkg in $(GOPACKAGES); do go fmt $$pkg; done
12+
@go fmt $(PACKAGES)
13+
14+
.PHONY: integration
15+
integration:
16+
@sh ./scripts/integration_test.sh $(GOPACKAGES)
1017

1118
.PHONY: lint
1219
lint:
1320
@golint -set_exit_status $(GOPACKAGES)
1421

15-
.PHONY: pull
16-
pull:
17-
@docker pull andyrbell/mountebank:1.16.0
18-
1922
.PHONY: unit
2023
unit:
21-
@go test -cover -short $(GOPACKAGES)
22-
23-
.PHONY: integration
24-
integration:
25-
@go test -cover -cpu=1,2 -tags integration $(GOPACKAGES)
26-
27-
.PHONY: tools
28-
tools:
29-
@go get -u golang.org/x/lint/golint github.com/kisielk/errcheck
24+
@go test -cover -timeout=1s $(GOPACKAGES)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ $ make unit
1919
$ make integration
2020
```
2121

22-
The integration test client points to a local Docker container at port 2525, with the additional ports 8080-8083 exposed for communication with test imposters. Currently tested against a mountebank v1.16.0 instance.
22+
The integration tests expect Docker to be available on the host, using it to run a local mountebank container at
23+
`localhost:2525`, with the additional ports 8080-8081 exposed for test imposters. Currently tested against a mountebank
24+
v2.0.0 instance using the [andyrbell/mountebank](https://hub.docker.com/r/andyrbell/mountebank) image on DockerHub.
2325

2426
## Contributing
2527

0 commit comments

Comments
 (0)