-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from senseyeio/smotes/mountebank-v2.0
mountebank v2.0
- Loading branch information
Showing
3,643 changed files
with
151 additions
and
737,735 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
sudo: required | ||
|
||
services: | ||
- docker | ||
- docker | ||
|
||
language: go | ||
|
||
go: | ||
- 1.9 | ||
- "1.10" | ||
- "1.11" | ||
- "1.12" | ||
- "1.10" | ||
- "1.11" | ||
- "1.12" | ||
|
||
before_install: | ||
- make pull | ||
- make tools | ||
script: make unit && make integration | ||
|
||
script: | ||
- make errcheck | ||
- make lint | ||
- make integration | ||
jobs: | ||
include: | ||
- stage: check | ||
install: go get golang.org/x/lint/golint github.com/kisielk/errcheck | ||
script: make lint && make errcheck | ||
go: "1.12" # only run source code analysis tools on latest version of Go |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,24 @@ | ||
GOPACKAGES := $(shell go list github.com/senseyeio/mbgo/...) | ||
GOPACKAGES := $(shell go list ./...) | ||
|
||
.PHONY: default | ||
default: fmt lint unit | ||
|
||
.PHONY: errcheck | ||
errcheck: | ||
@errcheck -asserts -blank -ignore 'io:[cC]lose' $(GOPACKAGES) | ||
|
||
.PHONY: fmt | ||
fmt: | ||
@for pkg in $(GOPACKAGES); do go fmt $$pkg; done | ||
@go fmt $(PACKAGES) | ||
|
||
.PHONY: integration | ||
integration: | ||
@sh ./scripts/integration_test.sh $(GOPACKAGES) | ||
|
||
.PHONY: lint | ||
lint: | ||
@golint -set_exit_status $(GOPACKAGES) | ||
|
||
.PHONY: pull | ||
pull: | ||
@docker pull andyrbell/mountebank:1.16.0 | ||
|
||
.PHONY: unit | ||
unit: | ||
@go test -cover -short $(GOPACKAGES) | ||
|
||
.PHONY: integration | ||
integration: | ||
@go test -cover -cpu=1,2 -tags integration $(GOPACKAGES) | ||
|
||
.PHONY: tools | ||
tools: | ||
@go get -u golang.org/x/lint/golint github.com/kisielk/errcheck | ||
@go test -cover -timeout=1s $(GOPACKAGES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.