From 1f90d04228001aad52531862cce2ef7bdb6961c2 Mon Sep 17 00:00:00 2001 From: Thomas Hu Date: Thu, 2 Jul 2020 11:32:37 -0400 Subject: [PATCH] Update env file --- SHA1SUM | 2 +- SHA256SUM | 2 +- SHA512SUM | 2 +- codecov | 1 + env | 55 ++++++++++++++++++++++++++++++++++++++++++++----------- 5 files changed, 48 insertions(+), 14 deletions(-) diff --git a/SHA1SUM b/SHA1SUM index c5af8e42..e9e01df2 100644 --- a/SHA1SUM +++ b/SHA1SUM @@ -1 +1 @@ -443ed57368bf5ae788b26410779a39131f6e3315 codecov +11fae9263d8b779e69fee4330733fc14e8216975 codecov diff --git a/SHA256SUM b/SHA256SUM index b93bfd0c..b81f257d 100644 --- a/SHA256SUM +++ b/SHA256SUM @@ -1 +1 @@ -26846c9dbc9f2b9fdfe2bc0c1b566d464b122b0d9b5e536b47a57369564726b3 codecov +0f20c5c49662fca210f4f92552f33aa8c78040f9e35c327fd6f7b33ac977d1b7 codecov diff --git a/SHA512SUM b/SHA512SUM index 7efd8e79..eab1ea0f 100644 --- a/SHA512SUM +++ b/SHA512SUM @@ -1 +1 @@ -9c9353c4ad8fb28dae42e51b4c401e1c38ad3de0ce13ad8a2118425ef7044da5521398feb57b9f36fd5e16022a07b07333c967b4fc5801117f3e94517e326a2d codecov +ddf37b5e0c5d67117bb6db6e1f627a608ba19b11560e73372e2c51f309c553d99754ce04ccb55576773553809e8ba4f9830ce4f692d0bfb0c6adf4692248b376 codecov diff --git a/codecov b/codecov index 4e05200e..681eaae3 100755 --- a/codecov +++ b/codecov @@ -718,6 +718,7 @@ then slug="$APPVEYOR_REPO_NAME" commit="$APPVEYOR_REPO_COMMIT" build_url=$(urlencode "${APPVEYOR_URL}/project/${APPVEYOR_REPO_NAME}/builds/$APPVEYOR_BUILD_ID/job/${APPVEYOR_JOB_ID}") + elif [ "$CI" = "true" ] && [ "$WERCKER_GIT_BRANCH" != "" ]; then say "$e==>$x Wercker CI detected." diff --git a/env b/env index 092e7a76..56b3a830 100755 --- a/env +++ b/env @@ -42,14 +42,6 @@ then add "BUILD_NUMBER" add "ghprbPullId" add "BUILD_URL" - -elif [ "$CODEBUILD_CI" = "true" ]; -then - add "CODEBUILD_WEBHOOK_HEAD_REF" - add "CODEBUILD_RESOLVED_SOURCE_VERSION" - add "CODEBUILD_SOURCE_VERSION" - add "CODEBUILD_BUILD_ID" - add "CODEBUILD_SOURCE_REPO_URL" elif [ "$CI" = "true" ] && [ "$TRAVIS" = "true" ] && [ "$SHIPPABLE" != "true" ]; then @@ -65,6 +57,21 @@ then add "TRAVIS_TAG" add "TRAVIS_OS_NAME" +elif [ "$CODEBUILD_CI" = "true" ]; +then + add "CODEBUILD_WEBHOOK_HEAD_REF" + add "CODEBUILD_RESOLVED_SOURCE_VERSION" + add "CODEBUILD_SOURCE_VERSION" + add "CODEBUILD_BUILD_ID" + add "CODEBUILD_SOURCE_REPO_URL" + +elif [ "$DOCKER_REPO" != "" ]; +then + add "SOURCE_BRANCH" + add "SOURCE_COMMIT" + add "DOCER_REPO" + add "CACHE_TAG" + elif [ "$CI" = "true" ] && [ "$CI_NAME" = "codeship" ]; then add "CI" @@ -74,6 +81,13 @@ then add "CI_BUILD_URL" add "CI_COMMIT_ID" +elif [ -n "$CF_BUILD_URL" ] && [ -n "$CF_BUILD_ID" ]; +then + add "CF_BRANCH" + add "CF_BUILD_ID" + add "CF_BUILD_URL" + add "CF_REVISION" + elif [ "$TEAMCITY_VERSION" != "" ]; then add "TEAMCITY_VERSION" @@ -148,7 +162,7 @@ then add "BUILDKITE_PROJECT_SLUG" add "BUILDKITE_COMMIT" -elif [ "$CI" = "drone" ]; +elif [ "$CI" = "drone" ] || [ "$DRONE" = "true" ]; then add "CI" add "DRONE_BRANCH" @@ -164,7 +178,7 @@ then add "HEROKU_TEST_RUN_BRANCH" add "HEROKU_TEST_RUN_ID" -elif [ "$CI" = "True" ] && [ "$APPVEYOR" = "True" ]; +elif [[ "$CI" = "true" || "$CI" = "True" ]] && [[ "$APPVEYOR" = "true" || "$APPVEYOR" = "True" ]]; then add "CI" add "APPVEYOR" @@ -205,7 +219,7 @@ then add "REPO_FULL_NAME" add "COMMIT" -elif [ "$TDDIUM" != "" ]; +elif [ "$TDDIUM" = "true" ]; then add "TDDIUM" add "TDDIUM_CURRENT_COMMIT" @@ -240,6 +254,16 @@ then add "GITHUB_SHA" add "GITHUB_RUN_ID" +elif [ "$SYSTEM_TEAMFOUNDATIONSERVERURI" != "" ]; +then + add "BUILD_SOURCEVERSION" + add "BUILD_BUILDNUMBER" + add "SYSTEM_PULLREQUEST_PULLREQUESTNUMBER" + add "SYSTEM_PULLREQUEST_PULLREQUESTID" + add "SYSTEM_TEAMPROJECT" + add "SYSTEM_TEAMFOUNDATIONSERVERURI" + add "BUILD_BUILDID" + elif [ "$CI" = "true" ] && [ "$BITBUCKET_BUILD_NUMBER" != "" ]; then add "CI" @@ -262,4 +286,13 @@ then add "BUDDY_EXECUTION_TAG" add "BUDDY_REPO_SLUG" +elif [ "$CIRRUS_CI" != "" ]; +then + add "CIRRUS_REPO_FULL_NAME" + add "CIRRUS_BRANCH" + add "CIRRUS_PR" + add "CIRRUS_CHANGE_IN_REPO" + add "CIRRUS_TASK_ID" + add "CIRRUS_TASK_NAME" + fi