This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree 2 files changed +25
-1
lines changed
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ before_install:
12
12
- go get github.com/mattn/goveralls
13
13
script :
14
14
- 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
16
16
- goveralls -coverprofile=coverage.out -service travis-ci
17
17
after_success :
18
18
# Build the snap.
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments