Skip to content

Commit

Permalink
Added sharness tests of cli tool
Browse files Browse the repository at this point in the history
Pulling from the multihash sharness repository to run tests of the cli tool.
  • Loading branch information
tabrath committed Mar 16, 2017
1 parent 54d61d0 commit cb29148
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ before_install:
script:
- go vet
- go test -race -coverprofile=coverage.txt -covermode=atomic
- make sharness

after_success:
- bash <(curl -s https://codecov.io/bash)

cache:
directories:
- $GOPATH/src/gx
- $GOPATH/pkg

notifications:
email: false
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ deps: gx
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

0 comments on commit cb29148

Please sign in to comment.