-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create config.yml * Delete .travis.yml * Added CircleCI badge to README * Add golint; run on latest only
- Loading branch information
Showing
4 changed files
with
80 additions
and
23 deletions.
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
version: 2.0 | ||
|
||
jobs: | ||
# Base test configuration for Go library tests Each distinct version should | ||
# inherit this base, and override (at least) the container image used. | ||
"test": &test | ||
docker: | ||
- image: circleci/golang:latest | ||
working_directory: /go/src/github.com/gorilla/websocket | ||
steps: &steps | ||
- checkout | ||
- run: go version | ||
- run: go get -t -v ./... | ||
# Only run gofmt, vet & lint against the latest Go version | ||
- run: > | ||
if [[ "$LATEST" = true ]]; then | ||
go get -u golang.org/x/lint/golint | ||
golint ./... | ||
fi | ||
- run: > | ||
if [[ "$LATEST" = true ]]; then | ||
diff -u <(echo -n) <(gofmt -d .) | ||
fi | ||
- run: > | ||
if [[ "$LATEST" = true ]]; then | ||
go vet -v . | ||
fi | ||
- run: if [[ "$LATEST" = true ]]; then go vet -v .; fi | ||
- run: go test -v -race ./... | ||
|
||
"latest": | ||
<<: *test | ||
environment: | ||
LATEST: true | ||
|
||
"1.12": | ||
<<: *test | ||
docker: | ||
- image: circleci/golang:1.12 | ||
|
||
"1.11": | ||
<<: *test | ||
docker: | ||
- image: circleci/golang:1.11 | ||
|
||
"1.10": | ||
<<: *test | ||
docker: | ||
- image: circleci/golang:1.10 | ||
|
||
"1.9": | ||
<<: *test | ||
docker: | ||
- image: circleci/golang:1.9 | ||
|
||
"1.8": | ||
<<: *test | ||
docker: | ||
- image: circleci/golang:1.8 | ||
|
||
"1.7": | ||
<<: *test | ||
docker: | ||
- image: circleci/golang:1.7 | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- "latest" | ||
- "1.12" | ||
- "1.11" | ||
- "1.10" | ||
- "1.9" | ||
- "1.8" | ||
- "1.7" |
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
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