From fb06930a59872254fec0c882bb82c45aa954e661 Mon Sep 17 00:00:00 2001 From: Marius Orcsik Date: Tue, 5 Jun 2018 20:59:42 +0200 Subject: [PATCH] Simplify exporting the GOPATH --- .travis.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index a3bda72..4e2527d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,10 +16,12 @@ install: - GOPATH=$GOPATH:$(pwd) go get -t -v ./... script: -- GOPATH=$GOPATH:$(pwd) go test -v ./... +- export GOPATH="$GOPATH:$(pwd)" +- go test -v ./... after_success: -- GOPATH=$GOPATH:$(pwd) go test -cover -coverprofile activitypub.coverprofile activitypub -- GOPATH=$GOPATH:$(pwd) go test -cover -coverprofile jsonld.coverprofile jsonld -- GOPATH=$GOPATH:$(pwd) $GOPATH/bin/gover +- export GOPATH="$GOPATH:$(pwd)" +- go test -cover -coverprofile activitypub.coverprofile activitypub +- go test -cover -coverprofile jsonld.coverprofile jsonld +- gover - bash <(curl -s https://codecov.io/bash) -f gover.coverprofile