Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Commit

Permalink
add test jobs to ensure we can build on current and previous versions…
Browse files Browse the repository at this point in the history
… of go

Bump xerrors for better go1.13 support

https://go-review.googlesource.com/c/xerrors/+/177379
  • Loading branch information
nickatsegment committed Sep 5, 2019
1 parent 23fa71f commit 98bf75a
Show file tree
Hide file tree
Showing 26 changed files with 42 additions and 6,052 deletions.
26 changes: 22 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,25 @@
version: 2
jobs:
test:

test-build-golang-prev:
docker:
- image: circleci/golang:1.12
steps:
- checkout
- run:
name: Install linux dependencies - libusb
command: |
sudo apt update -q
sudo apt install -yq libusb-dev libusb-1.0.0-dev
- run:
name: Test
command: |
go build -mod=vendor
./aws-okta version
test:
docker:
- image: circleci/golang:1.13
working_directory: /go/src/github.com/segmentio/aws-okta
steps:
- checkout
Expand Down Expand Up @@ -30,7 +47,7 @@ jobs:
dist-linux:
docker:
- image: circleci/golang:1.12
- image: circleci/golang:1.13
working_directory: /go/src/github.com/segmentio/aws-okta
steps:
- checkout
Expand All @@ -53,7 +70,7 @@ jobs:

publish-packagecloud:
docker:
- image: circleci/golang:1.12
- image: circleci/golang:1.13
working_directory: /go/src/github.com/segmentio/aws-okta
steps:
- checkout
Expand All @@ -71,7 +88,7 @@ jobs:
publish-github-linux:
docker:
- image: circleci/golang:1.12
- image: circleci/golang:1.13
working_directory: /go/src/github.com/segmentio/aws-okta
steps:
- checkout
Expand All @@ -90,6 +107,7 @@ workflows:
test-dist-publish-linux:
jobs:
- test
- test-build-golang-prev
- dist-linux:
# needed to ensure dist happens on tag events
filters:
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ require (
golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4
golang.org/x/net v0.0.0-20190628185345-da137c7871d7
golang.org/x/sys v0.0.0-20190710143415-6ec70d6a5542 // indirect
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7
gopkg.in/ini.v1 v1.42.0
)

go 1.13
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ golang.org/x/sys v0.0.0-20190710143415-6ec70d6a5542 h1:6ZQFf1D2YYDDI7eSwW8adlkka
golang.org/x/sys v0.0.0-20190710143415-6ec70d6a5542/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522 h1:bhOzK9QyoD0ogCnFro1m2mz41+Ib0oOhfJnBp5MR4K4=
golang.org/x/xerrors v0.0.0-20190513163551-3ee3066db522/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7 h1:9zdDQZ7Thm29KFXgAX/+yaf3eVbP7djjWp/dXAppNCc=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/ini.v1 v1.42.0 h1:7N3gPTt50s8GuLortA00n8AqRTk75qOP98+mTPpgzRk=
Expand Down
Loading

0 comments on commit 98bf75a

Please sign in to comment.