mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-03 10:32:17 +00:00
run tests from bash script
This commit is contained in:
parent
08f2b5bc84
commit
ac443fa61f
6
Makefile
6
Makefile
@ -2,10 +2,8 @@
|
|||||||
|
|
||||||
all: test
|
all: test
|
||||||
|
|
||||||
test: get_deps
|
test:
|
||||||
go test --race github.com/tendermint/go-rpc/...
|
bash ./test/test.sh
|
||||||
cd ./test && bash test.sh
|
|
||||||
|
|
||||||
|
|
||||||
get_deps:
|
get_deps:
|
||||||
go get -t -u github.com/tendermint/go-rpc/...
|
go get -t -u github.com/tendermint/go-rpc/...
|
||||||
|
@ -14,10 +14,6 @@ checkout:
|
|||||||
# - git submodule sync
|
# - git submodule sync
|
||||||
# - git submodule update --init # use submodules
|
# - git submodule update --init # use submodules
|
||||||
|
|
||||||
dependencies:
|
|
||||||
override:
|
|
||||||
- "cd $REPO && make get_deps"
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
override:
|
override:
|
||||||
- "cd $REPO && make test"
|
- "cd $REPO && make test"
|
||||||
|
12
test/test.sh
12
test/test.sh
@ -1,4 +1,16 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
cd $GOPATH/src/github.com/tendermint/go-rpc
|
||||||
|
|
||||||
|
# get deps
|
||||||
|
go get -u -t ./...
|
||||||
|
|
||||||
|
# go tests
|
||||||
|
go test --race github.com/tendermint/go-rpc/...
|
||||||
|
|
||||||
|
|
||||||
|
# integration tests
|
||||||
|
cd test
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
go build -o server main.go
|
go build -o server main.go
|
||||||
|
Loading…
x
Reference in New Issue
Block a user