summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Goodman <wagoodman@gmail.com>2019-09-17 20:39:00 -0400
committerAlex Goodman <wagoodman@gmail.com>2019-09-17 20:58:09 -0400
commit18b5fdbe799ab6b11f247af548cc8cd3be1e61af (patch)
tree118d257e61c3ff28997641f3b97bcff4c6c96281
parent6443603f332bac613809d9816a8cebff88bf6b43 (diff)
syntax fix
-rw-r--r--.circleci/config.yml42
1 files changed, 24 insertions, 18 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 717e7b6..4efc2c7 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,62 +1,68 @@
version: 2
-alias:
- &setup-steps:
- - run: go get ./...
- - run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
- &pipeline-steps:
- - run:
- name: run static analysis & tests
- command: make ci
-
jobs:
golang-1.11-pipeline:
- working_directory: /go/src/github.com/wagoodman/dive
+ working_directory: /home/circleci/app
docker:
- image: circleci/golang:1.11
+ environment:
+ GO111MODULE: "on"
steps:
- checkout
- restore_cache:
keys:
- golang-1.11-{{ checksum "go.sum" }}
- - *setup-steps
+ - run: go get ./...
+ - run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
- save_cache:
key: golang-1.11-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- - *pipeline-steps
+ - run:
+ name: run static analysis & tests
+ command: make ci
golang-1.12-pipeline:
- working_directory: /go/src/github.com/wagoodman/dive
+ working_directory: /home/circleci/app
docker:
- image: circleci/golang:1.12
+ environment:
+ GO111MODULE: "on"
steps:
- checkout
- restore_cache:
keys:
- golang-1.12-{{ checksum "go.sum" }}
- - *setup-steps
+ - run: go get ./...
+ - run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
- save_cache:
key: golang-1.12-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- - *pipeline-steps
+ - run:
+ name: run static analysis & tests
+ command: make ci
golang-1.13-pipeline:
- working_directory: /go/src/github.com/wagoodman/dive
+ working_directory: /home/circleci/app
docker:
- image: circleci/golang:1.13
+ environment:
+ GO111MODULE: "on"
steps:
- checkout
- restore_cache:
keys:
- golang-1.13-{{ checksum "go.sum" }}
- - *setup-steps
+ - run: go get ./...
+ - run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b /go/bin v1.17.1
- save_cache:
key: golang-1.13-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- - *pipeline-steps
+ - run:
+ name: run static analysis & tests
+ command: make ci
workflows:
version: 2