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

Commit

Permalink
Merge pull request #324 from xwp/feature/travis-ci-com-url
Browse files Browse the repository at this point in the history
Let user set the Travis CI tld to com instead of org for public projects
  • Loading branch information
derekherman authored Oct 16, 2020
2 parents 38bef68 + 5402961 commit a62ccca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/generate-markdown-readme
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ try {
$md_args['travis_ci_pro_badge_src'] = $md_args['travis_ci_pro_url'] . ".svg?token=$travis_ci_pro_badge&branch=$branch";
}
if ( ! isset( $md_args['travis_ci_pro_url'] ) ) {
$md_args['travis_ci_url'] = "https://travis-ci.org/$github_account_repo";
$tld = isset( $env_vars['TRAVIS_CI_COM_URL'] ) ? 'com' : 'org';
$md_args['travis_ci_url'] = "https://travis-ci.$tld/$github_account_repo";
$md_args['travis_ci_badge_src'] = $md_args['travis_ci_url'] . ".svg?branch=$branch";
}
}
Expand Down

0 comments on commit a62ccca

Please sign in to comment.