travis: deparallelize tasks within build to reduce flakes and improve logging

This commit is contained in:
Jarek Kowalski
2020-02-17 19:16:56 -08:00
parent 7f79c77d73
commit 35a7bb6038
2 changed files with 4 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ before_install:
;;
esac
install: make travis-setup
script: make -j4 travis-release
script: make travis-release
cache:
directories:
- $HOME/.cache/electron

View File

@@ -93,7 +93,7 @@ endif
test-all: lint vet test-with-coverage
# goreleaser - builds binaries for all platforms
GORELEASER_OPTIONS=--rm-dist --skip-publish
GORELEASER_OPTIONS=--rm-dist --skip-publish --parallelism=6
ifneq ($(TRAVIS_PULL_REQUEST),false)
# not running on travis, or travis in PR mode, skip signing
@@ -106,7 +106,7 @@ ifeq ($(TRAVIS_TAG),)
endif
goreleaser: $(goreleaser)
$(goreleaser) $(GORELEASER_OPTIONS)
$(goreleaser) release $(GORELEASER_OPTIONS)
ifeq ($(TRAVIS_PULL_REQUEST),false)
@@ -115,7 +115,7 @@ upload-coverage: $(GOVERALLS_TOOL) test-with-coverage
else
upload-coverage:
uload-coverage:
@echo Not uploading coverage during PR build.
endif