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

[CE-919] Add AWS Codebuild support #220

Merged
merged 14 commits into from
Nov 6, 2019
Prev Previous commit
Next Next commit
correct heads and pr
  • Loading branch information
drazisil authored Oct 31, 2019
commit 90ae3b37cd2e5fa1a1622e5e1a5e9f357c21de4f
6 changes: 3 additions & 3 deletions tests/test
Original file line number Diff line number Diff line change
Expand Up @@ -240,20 +240,20 @@ function assertURL () {
function test_codebuild () {
reset
export CODEBUILD_BUILD_ARN="true"
export CODEBUILD_WEBHOOK_HEAD_REF="refs/head/codebuild-master"
export CODEBUILD_WEBHOOK_HEAD_REF="refs/heads/codebuild-master"
export CODEBUILD_RESOLVED_SOURCE_VERSION="$TEST_DATA_GIT_COMMIT"
export CODEBUILD_SOURCE_VERSION="pr/42"
export CODEBUILD_BUILD_ID="33116958"
export CODEBUILD_SOURCE_REPO_URL="https://github.com/codecov/codecov-bash.git"
export CODEBUILD_BUILD_ID="4.1"
assertURL "https://codecov.io/upload/v4?package=bash-$VERSION&token=&branch=codebuild-master&commit=$TEST_DATA_GIT_COMMIT&build=4.1&build_url=&name=&tag=&slug=codecov%2Fcodecov-bash&service=codebuild&flags=&pr=false&job=33116958"
assertURL "https://codecov.io/upload/v4?package=bash-$VERSION&token=&branch=codebuild-master&commit=$TEST_DATA_GIT_COMMIT&build=4.1&build_url=&name=&tag=&slug=codecov%2Fcodecov-bash&service=codebuild&flags=&pr=42&job=33116958"
}

# Test an AWS Codebuild upload from a PR
function test_codebuild_pr () {
reset
export CODEBUILD_BUILD_ARN="true"
export CODEBUILD_WEBHOOK_HEAD_REF="refs/head/codebuild-master"
export CODEBUILD_WEBHOOK_HEAD_REF="refs/heads/codebuild-master"
export CODEBUILD_RESOLVED_SOURCE_VERSION="$TEST_DATA_GIT_COMMIT"
export CODEBUILD_SOURCE_VERSION="$TEST_DATA_GIT_COMMIT"
export CODEBUILD_BUILD_ID="33116958"
Expand Down