From daf88af7984417850aad054c6dcbb691f7ba5ec8 Mon Sep 17 00:00:00 2001 From: Roman Useinov Date: Thu, 22 Aug 2019 16:19:01 +0200 Subject: [PATCH] Fix Travis to work (#984) with multiline commit messages --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e7577d97..89c7b40d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -57,7 +57,9 @@ script: make cover; ./coverage/upload.sh; fi; -- printenv | grep -Ev "PATH|path|GEM" > env.list +- printenv TRAVIS_COMMIT_MESSAGE > commit.msg +- unset TRAVIS_COMMIT_MESSAGE && printenv | grep -Ev "PATH|path|GEM" > env.list +- export TRAVIS_COMMIT_MESSAGE=`cat commit.msg` && rm -rf commit.msg - docker run -it --rm --env-file env.list -v "$(pwd):/usr/src/app" iov1ops/danger:latest > danger.out; cat danger.out - if [[ "$TRAVIS_GO_VERSION" == "$MAIN_GO_VERSION" && "$TRAVIS_OS_NAME" == "linux" ]]; then release_latest=$( [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_TAG" == "" && "$TRAVIS_PULL_REQUEST_BRANCH" == "" ]] && echo "yes" || echo "no" );