Skip to content

Commit

Permalink
ci: build also for Go 1.12
Browse files Browse the repository at this point in the history
We now build for Go 1.11 and 1.12, in parallel.
  • Loading branch information
marco-m committed Jun 26, 2019
1 parent b674c1c commit b9937fe
Showing 1 changed file with 35 additions and 11 deletions.
46 changes: 35 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,40 @@
#
# YAML anchor to keep configuration DRY.
#
common: &common
# This conforms to Go workspace requirements (we are pre-modules).
working_directory: /go/src/github.com/google/goexpect
steps:
- checkout
- run:
name: Go version
command: go version
- run:
name: Get dependencies
command: go get -v ./...
- run:
name: Run unit tests
command: go test -v ./...

#
# CircleCI.
#
version: 2

jobs:
build:
go-1.11:
docker:
- image: circleci/golang:1.11
# This conforms to Go workspace requirements (we are pre-modules)
working_directory: /go/src/github.com/google/goexpect
<<: *common
go-1.12:
docker:
- image: circleci/golang:1.12
<<: *common

steps:
- checkout
- run:
name: Get dependencies
command: go get -v ./...
- run:
name: Run unit tests
command: go test -v ./...
workflows:
version: 2
test:
# These will run in parallel.
jobs:
- go-1.11
- go-1.12

0 comments on commit b9937fe

Please sign in to comment.