From 44f388b48b9ef7064005326c39d2609e170b829a Mon Sep 17 00:00:00 2001 From: David Anderson Date: Fri, 27 Jul 2018 09:43:56 -0700 Subject: [PATCH] Update CircleCI config to test 1.9, 1.10, 1.11beta2. --- .circleci/config.yml | 20 +++++++++++++++++--- .circleci/gen-config.go | 2 +- 2 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 64cc01b..ee7ee51 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,10 +12,20 @@ jobs: - run: make build - run: make test - run: make lint - test-1.10beta2: + test-1.10: working_directory: /go/src/go.universe.tf/netboot docker: - - image: circleci/golang:1.10beta2 + - image: circleci/golang:1.10 + steps: + - checkout + - run: make ci-prepare + - run: make build + - run: make test + - run: make lint + test-1.11beta2: + working_directory: /go/src/go.universe.tf/netboot + docker: + - image: circleci/golang:1.11beta2 steps: - checkout - run: make ci-prepare @@ -41,7 +51,11 @@ workflows: filters: tags: only: /.*/ - - test-1.10beta2: + - test-1.10: + filters: + tags: + only: /.*/ + - test-1.11beta2: filters: tags: only: /.*/ diff --git a/.circleci/gen-config.go b/.circleci/gen-config.go index 26a2c97..d6310c1 100644 --- a/.circleci/gen-config.go +++ b/.circleci/gen-config.go @@ -10,7 +10,7 @@ import ( func main() { tmpl := template.Must(template.ParseFiles("config.yml.tmpl")) v := map[string][]string{ - "GoVersions": []string{"1.9", "1.10beta2"}, + "GoVersions": []string{"1.9", "1.10", "1.11beta2"}, "Arch": []string{"amd64", "arm", "arm64", "ppc64le", "s390x"}, } if err := tmpl.Execute(os.Stdout, v); err != nil {