Add tparse to tests (#542)

This commit is contained in:
Egon Elbre 2018-10-29 16:21:23 +02:00 committed by GitHub
parent 47d056d627
commit 2328bf1b06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,10 +10,6 @@ cache:
directories: directories:
- /home/travis/cache - /home/travis/cache
services:
- redis
- postgresql
before_script: before_script:
# Add an IPv6 config - see the corresponding Travis issue # Add an IPv6 config - see the corresponding Travis issue
# https://github.com/travis-ci/travis-ci/issues/8361 # https://github.com/travis-ci/travis-ci/issues/8361
@ -33,13 +29,17 @@ matrix:
- env: - env:
- MODE=tests - MODE=tests
- STORJ_POSTGRESKV_TEST=postgres://postgres@localhost/pointerdb?sslmode=disable - STORJ_POSTGRESKV_TEST=postgres://postgres@localhost/pointerdb?sslmode=disable
services:
- redis
- postgresql
install: install:
- pushd ~ - pushd ~
- GOBIN=${GOPATH}/bin GOPATH=~/gotools go get github.com/mattn/goveralls - GOBIN=${GOPATH}/bin GOPATH=~/gotools go get github.com/mattn/goveralls
- GOBIN=${GOPATH}/bin GOPATH=~/gotools go get github.com/mfridman/tparse
- popd - popd
- go install -race ./... - go install -race ./...
script: script:
- go test -race -cover -coverprofile=.coverprofile ./... - go test -race -cover -coverprofile=.coverprofile -json ./... | tparse -all
- goveralls -coverprofile=.coverprofile -service=travis-ci - goveralls -coverprofile=.coverprofile -service=travis-ci
### run linters ### ### run linters ###
@ -52,6 +52,8 @@ matrix:
### captplanet tests ### ### captplanet tests ###
- env: MODE=integration - env: MODE=integration
services:
- redis
install: install:
- source scripts/install-awscli.sh - source scripts/install-awscli.sh
- go install storj.io/storj/cmd/captplanet - go install storj.io/storj/cmd/captplanet
@ -61,6 +63,8 @@ matrix:
### windows tests ### ### windows tests ###
- env: MODE=windows-tests - env: MODE=windows-tests
os: windows os: windows
services:
- redis
cache: cache:
directories: directories:
- "%HOME%/cache" - "%HOME%/cache"