@Override
  public CiConfiguration loadConfiguration() {
    String pr = system.envVariable("TRAVIS_PULL_REQUEST");
    String revision;
    if (isBlank(pr) || "false".equals(pr)) {
      revision = system.envVariable("TRAVIS_COMMIT");
    } else {
      revision = system.envVariable("TRAVIS_PULL_REQUEST_SHA");

    }
    return new CiConfigurationImpl(revision, getName());
  }
@Test
  public void loadConfiguration_of_branch() {
    setEnvVariable("CI", "true");
    setEnvVariable("TRAVIS", "true");
    setEnvVariable("TRAVIS_COMMIT", "abd12fc");
    setEnvVariable("TRAVIS_PULL_REQUEST", "false");
    setEnvVariable("TRAVIS_PULL_REQUEST_SHA", "");

    assertThat(underTest.loadConfiguration().getScmRevision()).hasValue("abd12fc");
  }