From eda97a478939454421efbd90ac46e31f9e4a936f Mon Sep 17 00:00:00 2001 From: rekby Date: Wed, 1 May 2019 11:55:29 +0300 Subject: [PATCH 1/2] Fix travis infinite loop --- .travis.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index dd65a862..d38a3f3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -29,9 +29,7 @@ after_script: before_deploy: - git config --local user.name "$GIT_NAME" - git config --local user.email "$GIT_EMAIL" - - export TRAVIS_TAG="$TAG_PREFIX.$TRAVIS_BUILD_NUMBER" - BUILD_TIME=$(TZ=UTC date --rfc-3339=seconds | cut -d '+' -f 1 | tr -d - | tr ' ' '-' | tr -d :) - - git tag $TRAVIS_TAG - go get -mod= github.com/mitchellh/gox - mkdir -p output - OS_ARCH_BUILDS="darwin/amd64 linux/386 linux/amd64 linux/arm freebsd/386 freebsd/amd64 freebsd/arm windows/386 windows/amd64" @@ -41,7 +39,6 @@ before_deploy: deploy: skip_cleanup: true provider: releases - tags: true on: repo: rekby/lets-proxy2 tags: true From 32c39f87144fff8ce3f2af8818d0e7fb20c50bd6 Mon Sep 17 00:00:00 2001 From: rekby Date: Wed, 1 May 2019 11:57:40 +0300 Subject: [PATCH 2/2] Doesn't run tests on tag --- .travis.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index d38a3f3b..e8282d68 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,16 +15,16 @@ services: - docker install: - - bash tests/prepare.sh + - test -n "$TRAVIS_TAG" || bash tests/prepare.sh script: - - go test -v -covermode=count -coverprofile=coverage.out ./... + - test -n "$TRAVIS_TAG" || go test -v -covermode=count -coverprofile=coverage.out ./... after_script: # Install and upload test coverage must not failure for test build - - go get -mod= golang.org/x/tools/cmd/cover - - go get -mod= github.com/mattn/goveralls - - goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN + - test -n "$TRAVIS_TAG" || go get -mod= golang.org/x/tools/cmd/cover + - test -n "$TRAVIS_TAG" || go get -mod= github.com/mattn/goveralls + - test -n "$TRAVIS_TAG" || goveralls -coverprofile=coverage.out -service=travis-ci -repotoken $COVERALLS_TOKEN before_deploy: - git config --local user.name "$GIT_NAME"