Skip to content

Commit

Permalink
running command line client as part of travis.
Browse files Browse the repository at this point in the history
  • Loading branch information
goodb committed Feb 26, 2020
1 parent 8ae8cbb commit 62d8d90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ jdk:
# Warning: travis fails, when log output >4M
script:
- mvn clean test

- java -jar minerva-cli/bin/minerva-cli.jar --import-owl-models -f minerva-server/src/test/resources/models/should_pass/ -j tmp_blazegraph.jnl
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
public class CommandLineInterface {
private static final Logger LOGGER = Logger.getLogger(CommandLineInterface.class);

public static void main(String[] args) throws Exception {
public static void main(String[] args) {

reportSystemParams();
Options main_options = new Options();
Expand Down Expand Up @@ -308,6 +308,10 @@ public static void main(String[] args) throws Exception {
}
}catch( ParseException exp ) {
System.out.println( "Unexpected exception:" + exp.getMessage() );
} catch (Exception e) {
e.printStackTrace();
//explicitly exiting to inform travis of failure.
System.exit(-1);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
*
*/
public class ModelSearchHandlerTest {
private static final Logger LOGGER = Logger.getLogger(ValidationTest.class);
private static final Logger LOGGER = Logger.getLogger(ModelSearchHandlerTest.class);
static Server server;
static final String ontologyIRI = "http://purl.obolibrary.org/obo/go/extensions/go-lego.owl";
static final String catalog = "src/test/resources/ontology/catalog-for-validation.xml";
Expand Down

0 comments on commit 62d8d90

Please sign in to comment.