parent
e65cf8c5df
commit
629b6af173
2 changed files with 65 additions and 19 deletions
65
.circleci/config.yml
Normal file
65
.circleci/config.yml
Normal file
|
@ -0,0 +1,65 @@
|
||||||
|
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/securecookie
|
||||||
|
steps: &steps
|
||||||
|
- checkout
|
||||||
|
- run: go version
|
||||||
|
- run: go get -t -v ./...
|
||||||
|
- run: diff -u <(echo -n) <(gofmt -d .)
|
||||||
|
- 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"
|
19
.travis.yml
19
.travis.yml
|
@ -1,19 +0,0 @@
|
||||||
language: go
|
|
||||||
sudo: false
|
|
||||||
|
|
||||||
matrix:
|
|
||||||
include:
|
|
||||||
- go: 1.3
|
|
||||||
- go: 1.4
|
|
||||||
- go: 1.5
|
|
||||||
- go: 1.6
|
|
||||||
- go: 1.7
|
|
||||||
- go: tip
|
|
||||||
allow_failures:
|
|
||||||
- go: tip
|
|
||||||
|
|
||||||
script:
|
|
||||||
- go get -t -v ./...
|
|
||||||
- diff -u <(echo -n) <(gofmt -d .)
|
|
||||||
- go vet $(go list ./... | grep -v /vendor/)
|
|
||||||
- go test -v -race ./...
|
|
Loading…
Reference in a new issue