Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
add support for Solano CI, close #16
Browse files Browse the repository at this point in the history
  • Loading branch information
stevepeak committed Nov 6, 2016
1 parent 15f4ab3 commit 441e201
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 11 deletions.
10 changes: 10 additions & 0 deletions codecov
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
28 changes: 17 additions & 11 deletions tests/env
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export APPVEYOR=""
export APPVEYOR_ACCOUNT_NAME=""
export APPVEYOR_BUILD_VERSION=""
export APPVEYOR_JOB_ID=""
Expand All @@ -7,40 +6,41 @@ 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=""
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=""
Expand All @@ -54,38 +54,44 @@ 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=""
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=""
Expand Down
10 changes: 10 additions & 0 deletions tests/test
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 441e201

Please sign in to comment.