_tests/lib/run_test_options.rb
def bind_github_status_environment_variables(github_sha_1, test_type, profile)
    return unless github_sha_1
    @logger.info("Enabling update of GitHub status for SHA1: '#{github_sha_1}'")
    bind_environment_variable('github_status_enabled', 'true')
    bind_environment_variable('github_status_sha1', github_sha_1)
    bind_environment_variable('github_status_context', 'js-unit-tests') if test_type == 'unit'
    if test_type == 'e2e'
      bind_environment_variable('github_status_context', 'js-e2e-tests') if profile == 'desktop'
      bind_environment_variable('github_status_context', 'js-mobile-e2e-tests') if profile == 'mobile'
    end
    bind_environment_variable('github_status_context', 'broken-link-checks') if test_type == 'blc'
  end
#
# Should we wish to update GitHub statuses, this will set the required environment variables
#
Should we wish to update GitHub statuses, this will set the required environment variables
Should we wish to update GitHub statuses this will set the required environment variables
def bind_github_status_environment_variables(github_sha_1, test_type, profile)
    return unless github_sha_1
    @logger.info("Enabling update of GitHub status for SHA1: '#{github_sha_1}'")
    bind_environment_variable('github_status_enabled', 'true')
    bind_environment_variable('github_status_sha1', github_sha_1)
    bind_environment_variable('github_status_context', 'js-unit-tests') if test_type == 'unit'
    if test_type == 'e2e'
      bind_environment_variable('github_status_context', 'js-e2e-tests') if profile == 'desktop'
      bind_environment_variable('github_status_context', 'js-mobile-e2e-tests') if profile == 'mobile'
    end
    bind_environment_variable('github_status_context', 'broken-link-checks') if test_type == 'blc'
  end
def bind_github_status_environment_variables ( github_sha_1 , test_type , profile ) return unless github_sha_1 @logger . info ( "Enabling update of GitHub status for SHA1: '#{github_sha_1}'" ) bind_environment_variable ( 'github_status_enabled' , 'true' ) bind_environment_variable ( 'github_status_sha1' , github_sha_1 ) bind_environment_variable ( 'github_status_context' , 'js-unit-tests' ) if test_type == 'unit' if test_type == 'e2e' bind_environment_variable ( 'github_status_context' , 'js-e2e-tests' ) if profile == 'desktop' bind_environment_variable ( 'github_status_context' , 'js-mobile-e2e-tests' ) if profile == 'mobile' end bind_environment_variable ( 'github_status_context' , 'broken-link-checks' ) if test_type == 'blc' end
Should we wish to update GitHub statuses, this will set the required environment variables
Should we wish to update GitHub statuses this will set the required environment variables
github_sha_1
test_type
profile