Added BitBucket and GitLab CIs.

More code cleanup.
This commit is contained in:
Erik C. Thauvin 2020-07-26 02:00:18 -07:00
parent c65204414d
commit 64d2328618
10 changed files with 81 additions and 19 deletions

View file

@ -51,10 +51,9 @@ import static org.assertj.core.api.Assertions.assertThat;
public class TwitterTest extends LocalProperties {
@SuppressFBWarnings("MDM")
private String getCi() {
if ("true".equals(System.getenv("CIRCLECI"))) {
return "CircleCI";
} else if ("true".equals(System.getenv("TRAVIS"))) {
return "Travis CI";
final String ciName = System.getenv("CI_NAME");
if (ciName != null) {
return ciName;
} else {
try {
return InetAddress.getLocalHost().getHostName();