From 2edc03e61f3ee39652bbcdcce6c34791a84684b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Trond=20Br=C3=A5then?= Date: Thu, 16 Mar 2017 19:54:34 +0100 Subject: [PATCH] Added sharness tests of cli tool Pulling from the multihash sharness repository to run tests of the cli tool. Forgot cache dir --- .travis.yml | 1 + Makefile | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 12c9db2..3e5d47d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ before_install: script: - go vet - go test -race -coverprofile=coverage.txt -covermode=atomic + - make sharness after_success: - bash <(curl -s https://codecov.io/bash) diff --git a/Makefile b/Makefile index 7811c09..88520fe 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,11 @@ deps: gx covertools gx --verbose install --global gx-go rewrite +sharness: deps + git clone https://github.com/multiformats/multihash.git $(PWD)/sharness + cd $(PWD)/multihash && go build -v . && ls && chmod +x ./multihash + export MULTIHASH_BIN="$(PWD)/multihash/multihash" && export TEST_EXPENSE=1 && make -j1 -C $(PWD)/sharness/tests/sharness + publish: gx-go rewrite --undo