aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-07-18 01:19:58 +0800
committerWei-Ning Huang <w@cobinhood.com>2018-07-18 01:30:12 +0800
commit86b33411b2681cdf9542a5a36704d15f835e6d48 (patch)
tree58d60fbef1dece8f5f436e38b9cfb634c5d855b8
parent6140e1b135ee01d2d17ca98c5e79155ec5851842 (diff)
downloaddexon-consensus-86b33411b2681cdf9542a5a36704d15f835e6d48.tar
dexon-consensus-86b33411b2681cdf9542a5a36704d15f835e6d48.tar.gz
dexon-consensus-86b33411b2681cdf9542a5a36704d15f835e6d48.tar.bz2
dexon-consensus-86b33411b2681cdf9542a5a36704d15f835e6d48.tar.lz
dexon-consensus-86b33411b2681cdf9542a5a36704d15f835e6d48.tar.xz
dexon-consensus-86b33411b2681cdf9542a5a36704d15f835e6d48.tar.zst
dexon-consensus-86b33411b2681cdf9542a5a36704d15f835e6d48.zip
project: setup circle CI
-rw-r--r--.circleci/config.yml18
-rw-r--r--README.md6
2 files changed, 22 insertions, 2 deletions
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