Skip to content
This repository was archived by the owner on Jul 15, 2018. It is now read-only.

Commit bb68d7e

Browse files
authored
Merge pull request #177 from tendermint/jenkins
tests: slow is smooth, smooth is fast
2 parents b161f0e + e19cedc commit bb68d7e

File tree

4 files changed

+18
-24
lines changed

4 files changed

+18
-24
lines changed

.circleci/config.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
paths:
4747
- /go/src/github.com/tendermint/abci
4848

49-
test_integration:
49+
test_apps:
5050
<<: *defaults
5151
steps:
5252
- attach_workspace:
@@ -56,10 +56,10 @@ jobs:
5656
- restore_cache:
5757
key: v1-tree-{{ .Environment.CIRCLE_SHA1 }}
5858
- run:
59-
name: Run integration tests
59+
name: Run apps tests
6060
command: |
6161
export PATH="$GOBIN:$PATH"
62-
bash tests/test.sh
62+
bash tests/test_app/test.sh
6363
6464
test_cover:
6565
<<: *defaults
@@ -111,9 +111,9 @@ workflows:
111111
- test_cover:
112112
requires:
113113
- setup_dependencies
114-
- test_integration:
114+
- test_apps:
115115
requires:
116116
- setup_dependencies
117117
- upload_coverage:
118118
requires:
119-
- test_integration
119+
- test_cover

Makefile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,20 @@ test_race:
8282
@echo "==> Running go test --race"
8383
@go test -v -race $(PACKAGES)
8484

85-
test_integrations:
86-
@bash test.sh
85+
### three tests tested by Jenkins
86+
test_cover:
87+
@ bash tests/test_cover.sh
8788

89+
test_apps:
90+
# test the counter using a go test script
91+
@ bash tests/test_app/test.sh
92+
93+
test_cli:
94+
# test the cli against the examples in the tutorial at tendermint.com
95+
@ bash tests/test_cli/test.sh
96+
97+
fmt:
98+
@ go fmt ./...
8899

89100
########################################
90101
### Formatting, linting, and vetting

tests/test.sh

Lines changed: 0 additions & 11 deletions
This file was deleted.

test.sh renamed to tests/test_cover.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,3 @@ for d in $(go list ./... | grep -v vendor); do
1111
rm profile.out
1212
fi
1313
done
14-
15-
echo "==> Running integration tests (./tests)"
16-
find . -path ./vendor -prune -o -name "*.sock" -exec rm {} \;
17-
# tests/test.sh requires that we run the installed cmds, must not be out of date
18-
make install
19-
bash tests/test.sh

0 commit comments

Comments
 (0)