From 86b33411b2681cdf9542a5a36704d15f835e6d48 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Wed, 18 Jul 2018 01:19:58 +0800 Subject: project: setup circle CI --- .circleci/config.yml | 18 ++++++++++++++++++ README.md | 6 ++++-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..390f5ba --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,18 @@ +version: 2 +jobs: + build: + docker: + - image: circleci/golang:1.10 + + working_directory: /go/src/github.com/dexon-foundation/dexon-consensus-core + + environment: + + steps: + - checkout + - run: bin/install_tools.sh + - run: dep ensure + - run: make lint + - run: make vet + - run: make test + - run: make diff --git a/README.md b/README.md index bcad369..9d09ec8 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![CircleCI](https://circleci.com/gh/dexon-foundation/dexon-consensus-core.svg?style=svg)](https://circleci.com/gh/dexon-foundation/dexon-consensus-core) + DEXON Consensus Core ==================== @@ -32,10 +34,10 @@ DEXON Consensus Core ``` You should write these settings to your `.bashrc` file. -### Run unit tests +### Run Unit Tests ``` -make test +make pre-submit ``` ## Simulation -- cgit v1.2.3