From 63af1f75b9661a26872f6f64c83ef029b9ecdeb4 Mon Sep 17 00:00:00 2001 From: Lucas Burson Date: Tue, 11 Apr 2023 20:47:32 -0500 Subject: [PATCH] Use 'set -x' to simplify script debugging --- .travis/build.sh | 1 + .travis/deploy-gate.sh | 1 + .travis/deploy.sh | 1 + .travis/install.sh | 1 + .travis/merge-dev-to-main-gate.sh | 1 + .travis/merge-dev-to-main.sh | 1 + .travis/tag-main-gate.sh | 1 + .travis/tag-main.sh | 1 + .travis/trigger-release.sh | 1 + 9 files changed, 9 insertions(+) diff --git a/.travis/build.sh b/.travis/build.sh index 0a540fc..d13a9ac 100644 --- a/.travis/build.sh +++ b/.travis/build.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -x chmod u+x gradlew diff --git a/.travis/deploy-gate.sh b/.travis/deploy-gate.sh index 9291fe4..0c2f61c 100644 --- a/.travis/deploy-gate.sh +++ b/.travis/deploy-gate.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -x if [ $TRAVIS_TEST_RESULT -eq 0 ]; then diff --git a/.travis/deploy.sh b/.travis/deploy.sh index 4cb5aa7..93a5677 100644 --- a/.travis/deploy.sh +++ b/.travis/deploy.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -x if [ "$TRAVIS_BRANCH" = "main" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then diff --git a/.travis/install.sh b/.travis/install.sh index 5a72030..d438761 100644 --- a/.travis/install.sh +++ b/.travis/install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -x if [ "$TRAVIS_BRANCH" = "main" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then diff --git a/.travis/merge-dev-to-main-gate.sh b/.travis/merge-dev-to-main-gate.sh index f20cfef..14223ca 100644 --- a/.travis/merge-dev-to-main-gate.sh +++ b/.travis/merge-dev-to-main-gate.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -x if [ $TRAVIS_TEST_RESULT -eq 0 ]; then diff --git a/.travis/merge-dev-to-main.sh b/.travis/merge-dev-to-main.sh index 1bf4a39..6476f38 100644 --- a/.travis/merge-dev-to-main.sh +++ b/.travis/merge-dev-to-main.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -x GITHUB_REPO="osmlab/maproulette-java-client" MERGE_BRANCH=main diff --git a/.travis/tag-main-gate.sh b/.travis/tag-main-gate.sh index 58ab58a..560b40b 100644 --- a/.travis/tag-main-gate.sh +++ b/.travis/tag-main-gate.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -x if [[ $TRAVIS_TEST_RESULT == 0 ]] && [[ 1 == 0 ]]; then diff --git a/.travis/tag-main.sh b/.travis/tag-main.sh index 1349af9..1004ed4 100644 --- a/.travis/tag-main.sh +++ b/.travis/tag-main.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -x GITHUB_REPO="osmlab/maproulette-java-client" RELEASE_BRANCH=main diff --git a/.travis/trigger-release.sh b/.travis/trigger-release.sh index f90da5f..7a976d4 100755 --- a/.travis/trigger-release.sh +++ b/.travis/trigger-release.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh +set -x # Use Travis to trigger a release from Main