Added BitBucket and GitLab CIs.
More code cleanup.
This commit is contained in:
parent
c65204414d
commit
64d2328618
10 changed files with 81 additions and 19 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue