Skip to content

Commit

Permalink
Remove support for Travis use
Browse files Browse the repository at this point in the history
  • Loading branch information
henning-gerhardt committed Feb 22, 2023
1 parent 473a243 commit 05df98f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 209 deletions.
8 changes: 0 additions & 8 deletions Kitodo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,14 +121,6 @@
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-client</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,11 @@
import org.apache.logging.log4j.Logger;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.rules.TestRule;
import org.kitodo.config.ConfigCore;
import org.kitodo.ExecutionPermission;
import org.kitodo.FileLoader;
import org.kitodo.MockDatabase;
import org.kitodo.config.ConfigCore;
import org.kitodo.config.enums.ParameterCore;
import org.kitodo.selenium.testframework.helper.TestWatcherImpl;

public class BaseTestSelenium {

Expand Down Expand Up @@ -77,11 +74,4 @@ public static void tearDown() throws Exception {
MockDatabase.stopDatabaseServer();
MockDatabase.cleanDatabase();
}

/**
* Watcher for WebDriverExceptions on travis which takes screenshot and sends
* email
*/
@Rule
public TestRule seleniumExceptionWatcher = new TestWatcherImpl();
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ public class Browser {

private static Actions actions;

private static boolean onTravis = false;

private static RemoteWebDriver webDriver;

/**
Expand All @@ -80,11 +78,6 @@ public static void Initialize() throws IOException {
webDriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
goTo("");
webDriver.manage().window().setSize(new Dimension(1280, 1024));

if ("true".equals(System.getenv().get("TRAVIS"))) {
logger.debug("TRAVIS environment detected");
onTravis = true;
}
}

private static void provideChromeDriver() throws IOException {
Expand Down Expand Up @@ -346,13 +339,4 @@ public static int getDelayAfterCatalogSelection() {
return DELAY_AFTER_CATALOG_SELECTION;
}

/**
* Gets onTravis.
*
* @return True if this runs on Travis.
*/
public static boolean isOnTravis() {
return onTravis;
}

}

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,6 @@
<version>3.0.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>mail</artifactId>
<version>1.4.7</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
Expand Down Expand Up @@ -281,12 +275,6 @@ from system library in Java 11+ -->
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
<version>1.5</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-exec</artifactId>
Expand Down

0 comments on commit 05df98f

Please sign in to comment.