diff --git a/codecov b/codecov index 853175dd..718a81d3 100755 --- a/codecov +++ b/codecov @@ -565,6 +565,16 @@ then slug="$REPO_FULL_NAME" commit="$COMMIT" +elif [ "$TDDIUM" = "true" ]; +then + say "Solano CI detected." + # http://docs.solanolabs.com/Setup/tddium-set-environment-variables/ + service="solano" + commit="$TDDIUM_CURRENT_COMMIT" + branch="$TDDIUM_CURRENT_BRANCH" + build="$TDDIUM_TID" + pr="$TDDIUM_PR_ID" + elif [ "$GREENHOUSE" = "true" ]; then say "$e==>$x Greenhouse CI detected." diff --git a/tests/env b/tests/env index 03a9ba71..59e74723 100644 --- a/tests/env +++ b/tests/env @@ -1,4 +1,3 @@ -export APPVEYOR="" export APPVEYOR_ACCOUNT_NAME="" export APPVEYOR_BUILD_VERSION="" export APPVEYOR_JOB_ID="" @@ -7,6 +6,7 @@ export APPVEYOR_PULL_REQUEST_NUMBER="" export APPVEYOR_REPO_BRANCH="" export APPVEYOR_REPO_COMMIT="" export APPVEYOR_REPO_NAME="" +export APPVEYOR="" export BITRISE_APP_SLUG="" export BITRISE_BUILD_NUMBER="" export BITRISE_BUILD_URL="" @@ -14,33 +14,33 @@ export BITRISE_GIT_BRANCH="" export BITRISE_GIT_COMMIT="" export BITRISE_IO="" export BITRISE_PULL_REQUEST="" -export BRANCH="" export BRANCH_NAME="" +export BRANCH="" export BUILD_ID="" export BUILD_NUMBER="" export BUILD_NUMBER="" export BUILD_URL="" -export BUILDKITE="" export BUILDKITE_BRANCH="" export BUILDKITE_BUILD_NUMBER="" -export BUILDKITE_JOB_ID="" export BUILDKITE_BUILD_URL="" export BUILDKITE_COMMIT="" +export BUILDKITE_JOB_ID="" export BUILDKITE_PROJECT_SLUG="" -export CI="" +export BUILDKITE="" export CI_BRANCH="" export CI_BUILD_ID="" export CI_BUILD_NUMBER="" -export CI_BUILD_REF="" export CI_BUILD_REF_NAME="" +export CI_BUILD_REF="" export CI_BUILD_REPO="" export CI_BUILD_URL="" -export CI_COMMIT="" export CI_COMMIT_ID="" +export CI_COMMIT="" export CI_NAME="" export CI_PROJECT_DIR="" export CI_SERVER_NAME="" export CI_SERVER_NAME="" +export CI="" export CIRCLE_BRANCH="" export CIRCLE_BUILD_NUM="" export CIRCLE_NODE_INDEX="" @@ -54,31 +54,36 @@ export CODECOV_SLUG="" export CODECOV_TOKEN="" export CODECOV_URL="" export COMMIT="" -export DRONE="" export DRONE_BRANCH="" export DRONE_BUILD_URL="" +export DRONE="" export ghprbActualCommit="" export ghprbPullId="" export ghprbSourceBranch="" -export GITLAB_CI="" export GIT_BRANCH="" export GIT_COMMIT="" +export GITLAB_CI="" export JENKINS_URL="" export MAGNUM="" export PULL_REQUEST="" export REPO_FULL_NAME="" export REVISION="" -export SEMAPHORE="" export SEMAPHORE_BUILD_NUMBER="" export SEMAPHORE_CURRENT_THREAD="" export SEMAPHORE_REPO_SLUG="" +export SEMAPHORE="" export SHIPPABLE="" export SNAP_BRANCH="" export SNAP_CI="" export SNAP_COMMIT="" export SNAP_PIPELINE_COUNTER="" export SNAP_PULL_REQUEST_NUMBER="" -export TRAVIS="" +export TDDIUM_CURRENT_BRANCH="" +export TDDIUM_CURRENT_COMMIT="" +export TDDIUM_PR_ID="" +export TDDIUM_REPO_ROOT="" +export TDDIUM_TID="" +export TDDIUM="" export TRAVIS_BRANCH="" export TRAVIS_C="" export TRAVIS_COMMIT="" @@ -86,6 +91,7 @@ export TRAVIS_JOB_ID="" export TRAVIS_JOB_ID="" export TRAVIS_JOB_NUMBER="" export TRAVIS_REPO_SLUG="" +export TRAVIS="" export WERCKER_GIT_BRANCH="" export WERCKER_GIT_COMMIT="" export WERCKER_GIT_OWNER="" diff --git a/tests/test b/tests/test index a9839349..2b514814 100755 --- a/tests/test +++ b/tests/test @@ -303,6 +303,16 @@ function test_buildkite (){ assertURL "https://codecov.io/upload/v4?package=bash-tbd&token=&branch=develop&commit=180c0d097354fc1a451da8a3be5aba255f2ffd9f&build=8.1&build_url=http%3A%2F%2Fbuildkite&tag=&slug=myowner%2Fmyrepo&yaml=&service=buildkite&flags=&pr=&job=" } +function test_solano (){ + reset + export TDDIUM="true" + export TDDIUM_CURRENT_BRANCH="develop" + export TDDIUM_TID="12311" + export TDDIUM_PR_ID="false" + export TDDIUM_CURRENT_COMMIT="180c0d097354fc1a451da8a3be5aba255f2ffd9f" + assertURL "https://codecov.io/upload/v4?package=bash-tbd&token=&branch=develop&commit=180c0d097354fc1a451da8a3be5aba255f2ffd9f&build=12311&build_url=&tag=&slug=codecov%2Fcodecov-bash&yaml=&service=solano&flags=&pr=false&job=" +} + function test_drone (){ reset export CI="true"