Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 8c66273

Browse files
authored
Merge pull request #1090 from OpenBazaar/0.12.3-rc2
Make tests run in serial
2 parents ced0f05 + 307fcb3 commit 8c66273

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ before_install:
1212
- go get github.com/mattn/goveralls
1313
script:
1414
- diff -u <(echo -n) <(gofmt -d -s $(find . -type f -name '*.go' -not -path "./vendor/*" -not -path "./pb/*"))
15-
- cd $TRAVIS_BUILD_DIR && go test -i && go test -coverprofile=coverage.out ./...
15+
- cd $TRAVIS_BUILD_DIR && go test -i && ./test_compile.sh
1616
- goveralls -coverprofile=coverage.out -service travis-ci
1717
after_success:
1818
# Build the snap.

test_compile.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
set -e
4+
pwd
5+
go test -coverprofile=api.cover.out ./api
6+
go test -coverprofile=bitcoin.cover.out ./bitcoin
7+
go test -coverprofile=bitcoin.listeners.cover.out ./bitcoin/listeners
8+
go test -coverprofile=core.cover.out ./core
9+
go test -coverprofile=ipfs.cover.out ./ipfs
10+
go test -coverprofile=mobile.cover.out ./mobile
11+
go test -coverprofile=net.cover.out ./net
12+
go test -coverprofile=net.service.cover.out ./net/service
13+
go test -coverprofile=net.repointer.cover.out ./net/repointer
14+
go test -coverprofile=net.retriever.cover.out ./net/retriever
15+
go test -coverprofile=repo.cover.out ./repo
16+
go test -coverprofile=repo.db.cover.out ./repo/db
17+
go test -coverprofile=repo.migrations.db.cover.out ./repo/migrations
18+
go test -coverprofile=schema.cover.out ./schema
19+
go test -coverprofile=storage.cover.out ./storage
20+
go test -coverprofile=storage.dropbox.cover.out ./storage/dropbox
21+
go test -coverprofile=storage.selfhosted.cover.out ./storage/selfhosted
22+
echo "mode: set" > coverage.out && cat *.cover.out | grep -v mode: | sort -r | \
23+
awk '{if($1 != last) {print $0;last=$1}}' >> coverage.out
24+
rm -rf *.cover.out

0 commit comments

Comments
 (0)