Browse Source

run tests from bash script

pull/456/head
Ethan Buchman 8 years ago
parent
commit
ac443fa61f
3 changed files with 14 additions and 8 deletions
  1. +2
    -4
      Makefile
  2. +0
    -4
      circle.yml
  3. +12
    -0
      test/test.sh

+ 2
- 4
Makefile View File

@ -2,10 +2,8 @@
all: test
test: get_deps
go test --race github.com/tendermint/go-rpc/...
cd ./test && bash test.sh
test:
bash ./test/test.sh
get_deps:
go get -t -u github.com/tendermint/go-rpc/...

+ 0
- 4
circle.yml View File

@ -14,10 +14,6 @@ checkout:
# - git submodule sync
# - git submodule update --init # use submodules
dependencies:
override:
- "cd $REPO && make get_deps"
test:
override:
- "cd $REPO && make test"

+ 12
- 0
test/test.sh View File

@ -1,4 +1,16 @@
#! /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
go build -o server main.go


Loading…
Cancel
Save