From 4260891bcd189ac72e760d6cda6da47bf1a9c6ad Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Tue, 15 Oct 2019 13:03:14 -0400 Subject: [PATCH 1/3] fix: circleci config format --- .circleci/config.yml | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4d815c0e..27679d6c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,5 +1,4 @@ -version 2.1 - +version: 2.1 executors: golang: docker: @@ -14,20 +13,20 @@ commands: type: string steps: - attach_workspace: - at: /tmp/workspace + at: /tmp/workspace - restore_cache: - name: "Restore source code cache" - keys: - - go-src-v1-{{ .Revision }} + name: "Restore source code cache" + keys: + - go-src-v1-{{ .Revision }} - checkout - restore_cache: - name: "Restore go modules cache" - keys: - - go-mod-v2-{{ checksum "go.sum" }} + name: "Restore go modules cache" + keys: + - go-mod-v2-{{ checksum "go.sum" }} - run: - name: << parameters.description >> - cammnd: | - make << parameters.target >> + name: << parameters.description >> + command: | + make << parameters.target >> jobs: setup-dependencies: @@ -35,12 +34,12 @@ jobs: steps: - checkout - restore_cache: - name: "Restore go modules cache" - keys: - - go-mod-v2-{{ checksum "go.sum" }} + name: "Restore go modules cache" + keys: + - go-mod-v2-{{ checksum "go.sum" }} - run: - name: Cache go modules - command: make go-mod-cache + name: Cache go modules + command: make go-mod-cache - run: name: Build command: make build From ad42bf00e5a5dbe11bee380311e26f720a61b9d2 Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Tue, 15 Oct 2019 14:13:25 -0400 Subject: [PATCH 2/3] fix: go-mod-cache for ci --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 114bad36..2dfbf5f8 100644 --- a/Makefile +++ b/Makefile @@ -82,6 +82,11 @@ install: go.sum ######################################## ### Tools & dependencies +go-mod-cache: go.sum + @echo "--> Download go modules to local cache" + @go mod download +PHONY: go-mod-cache + go.sum: go.mod @echo "--> Ensuring dependencies have not been modified" @go mod verify From d9f3dd8da1143709e560adf9816462edc18ff7e2 Mon Sep 17 00:00:00 2001 From: Kevin Davis Date: Tue, 15 Oct 2019 14:19:34 -0400 Subject: [PATCH 3/3] feat: ci badges --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 18fb303f..574b31c3 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@
+[![version](https://img.shields.io/github/tag/kava-labs/kava.svg)](https://github.com/kava-labs/kava/releases/latest) +[![CircleCI](https://circleci.com/gh/Kava-Labs/kava/tree/master.svg?style=shield)](https://circleci.com/gh/Kava-Labs/kava/tree/master) [![Go Report Card](https://goreportcard.com/badge/github.com/kava-labs/kava)](https://goreportcard.com/report/github.com/kava-labs/kava) [![API Reference](https://godoc.org/github.com/Kava-Labs/kava?status.svg)](https://godoc.org/github.com/Kava-Labs/kava) [![GitHub](https://img.shields.io/github/license/kava-labs/kava.svg)](https://github.com/Kava-Labs/kava/blob/master/LICENSE.md)