Skip to content

Commit 56c33e9

Browse files
authored
Create config.yml (#195)
* Create config.yml * Update config.yml * Delete .travis.yml
1 parent 12bd476 commit 56c33e9

File tree

2 files changed

+65
-24
lines changed

2 files changed

+65
-24
lines changed

.circleci/config.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
version: 2.0
2+
3+
jobs:
4+
# Base test configuration for Go library tests Each distinct version should
5+
# inherit this base, and override (at least) the container image used.
6+
"test": &test
7+
docker:
8+
- image: circleci/golang:latest
9+
working_directory: /go/src/github.com/gorilla/sessions
10+
steps: &steps
11+
- checkout
12+
- run: go version
13+
- run: go get -t -v ./...
14+
- run: diff -u <(echo -n) <(gofmt -d .)
15+
- run: if [[ "$LATEST" = true ]]; then go vet -v .; fi
16+
- run: go test -v -race ./...
17+
18+
"latest":
19+
<<: *test
20+
environment:
21+
LATEST: true
22+
23+
24+
"1.12":
25+
<<: *test
26+
docker:
27+
- image: circleci/golang:1.12
28+
29+
"1.11":
30+
<<: *test
31+
docker:
32+
- image: circleci/golang:1.11
33+
34+
"1.10":
35+
<<: *test
36+
docker:
37+
- image: circleci/golang:1.10
38+
39+
"1.9":
40+
<<: *test
41+
docker:
42+
- image: circleci/golang:1.9
43+
44+
"1.8":
45+
<<: *test
46+
docker:
47+
- image: circleci/golang:1.8
48+
49+
"1.7":
50+
<<: *test
51+
docker:
52+
- image: circleci/golang:1.7
53+
54+
55+
workflows:
56+
version: 2
57+
build:
58+
jobs:
59+
- "latest"
60+
- "1.12"
61+
- "1.11"
62+
- "1.10"
63+
- "1.9"
64+
- "1.8"
65+
- "1.7"

.travis.yml

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

0 commit comments

Comments
 (0)