Skip to content

Commit

Permalink
Create config.yml (#195)
Browse files Browse the repository at this point in the history
* Create config.yml

* Update config.yml

* Delete .travis.yml
  • Loading branch information
elithrar committed Jun 27, 2019
1 parent 12bd476 commit 56c33e9
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 24 deletions.
65 changes: 65 additions & 0 deletions .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/sessions
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"
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

0 comments on commit 56c33e9

Please sign in to comment.