Skip to content

Commit

Permalink
Add CircleCI config
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Luzzardi <[email protected]>
  • Loading branch information
aluzzardi committed Nov 29, 2018
1 parent 9c33377 commit 226a4dc
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: 2

workflows:
version: 2
build-and-test:
jobs:
- build
- test

jobs:
build:
docker:
- image: circleci/golang:1.11
working_directory: /go/src/github.com/blocklayerhq/chainkit
steps:
- checkout
- restore_cache:
keys:
- v1-pkg-cache
- run:
name: Build
command:
go build
- save_cache:
key: v1-pkg-cache
paths:
- "/go/pkg"
test:
docker:
- image: circleci/golang:1.11
working_directory: /go/src/github.com/blocklayerhq/chainkit
steps:
- checkout
- restore_cache:
keys:
- v1-pkg-cache
- run:
name: Run linter
command: make setup check
- run:
name: Run unit tests
command:
go test -v ./...
- save_cache:
key: v1-pkg-cache
paths:
- "/go/pkg"

0 comments on commit 226a4dc

Please sign in to comment.