summaryrefslogtreecommitdiff
path: root/.circleci
diff options
context:
space:
mode:
authorMatt Silverlock <matt@eatsleeprepeat.net>2019-06-27 06:59:45 +0300
committerGitHub <noreply@github.com>2019-06-27 06:59:45 +0300
commit629b6af17341019b261eab06da74c418942918d9 (patch)
tree73cd217e8fe5511c716e4a4e92daecb2bf60ae39 /.circleci
parente65cf8c5df817c89aeb47ecb46064e802e2de943 (diff)
Create config.yml (#63)
* Create config.yml * Delete .travis.yml
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml65
1 files changed, 65 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..c2f13d4
--- /dev/null
+++ b/.circleci/config.yml
@@ -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"