mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-03 18:42:14 +00:00
Merge pull request #177 from tendermint/jenkins
tests: slow is smooth, smooth is fast
This commit is contained in:
commit
bb68d7e7be
@ -46,7 +46,7 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- /go/src/github.com/tendermint/abci
|
- /go/src/github.com/tendermint/abci
|
||||||
|
|
||||||
test_integration:
|
test_apps:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
@ -56,10 +56,10 @@ jobs:
|
|||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: v1-tree-{{ .Environment.CIRCLE_SHA1 }}
|
key: v1-tree-{{ .Environment.CIRCLE_SHA1 }}
|
||||||
- run:
|
- run:
|
||||||
name: Run integration tests
|
name: Run apps tests
|
||||||
command: |
|
command: |
|
||||||
export PATH="$GOBIN:$PATH"
|
export PATH="$GOBIN:$PATH"
|
||||||
bash tests/test.sh
|
bash tests/test_app/test.sh
|
||||||
|
|
||||||
test_cover:
|
test_cover:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
@ -111,9 +111,9 @@ workflows:
|
|||||||
- test_cover:
|
- test_cover:
|
||||||
requires:
|
requires:
|
||||||
- setup_dependencies
|
- setup_dependencies
|
||||||
- test_integration:
|
- test_apps:
|
||||||
requires:
|
requires:
|
||||||
- setup_dependencies
|
- setup_dependencies
|
||||||
- upload_coverage:
|
- upload_coverage:
|
||||||
requires:
|
requires:
|
||||||
- test_integration
|
- test_cover
|
||||||
|
15
Makefile
15
Makefile
@ -82,9 +82,20 @@ test_race:
|
|||||||
@echo "==> Running go test --race"
|
@echo "==> Running go test --race"
|
||||||
@go test -v -race $(PACKAGES)
|
@go test -v -race $(PACKAGES)
|
||||||
|
|
||||||
test_integrations:
|
### three tests tested by Jenkins
|
||||||
@bash test.sh
|
test_cover:
|
||||||
|
@ bash tests/test_cover.sh
|
||||||
|
|
||||||
|
test_apps:
|
||||||
|
# test the counter using a go test script
|
||||||
|
@ bash tests/test_app/test.sh
|
||||||
|
|
||||||
|
test_cli:
|
||||||
|
# test the cli against the examples in the tutorial at tendermint.com
|
||||||
|
@ bash tests/test_cli/test.sh
|
||||||
|
|
||||||
|
fmt:
|
||||||
|
@ go fmt ./...
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
### Formatting, linting, and vetting
|
### Formatting, linting, and vetting
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
set -e
|
|
||||||
|
|
||||||
# test the counter using a go test script
|
|
||||||
bash tests/test_app/test.sh
|
|
||||||
|
|
||||||
# test the cli against the examples in the tutorial at tendermint.com
|
|
||||||
# TODO: make these less fragile
|
|
||||||
# bash tests/test_cli/test.sh
|
|
||||||
|
|
||||||
|
|
@ -11,9 +11,3 @@ for d in $(go list ./... | grep -v vendor); do
|
|||||||
rm profile.out
|
rm profile.out
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "==> Running integration tests (./tests)"
|
|
||||||
find . -path ./vendor -prune -o -name "*.sock" -exec rm {} \;
|
|
||||||
# tests/test.sh requires that we run the installed cmds, must not be out of date
|
|
||||||
make install
|
|
||||||
bash tests/test.sh
|
|
Loading…
x
Reference in New Issue
Block a user