Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Add travis.ci support #29

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: java
jdk:
- oraclejdk8

# Use robot to convert the ontology, which requires that the ontology can be parsed.
#
# Could also validate OWL profiles? e.g.
# ./tools/robot validate-profile -i ./target-ontologies/bibliotek-o.owl -p DL

script:
- ./tools/robot help
- ./tools/robot convert -i ./target-ontologies/bibliotek-o.owl -f OBO -o /tmp/bibliotek-o.obo

16 changes: 16 additions & 0 deletions tools/robot
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

## Check for Cygwin, use grep for a case-insensitive search
IS_CYGWIN="FALSE"
if uname | grep -iq cygwin; then
IS_CYGWIN="TRUE"
fi

DIR="$( cd "$( dirname "$0" )" && pwd )"

if [ $IS_CYGWIN = "TRUE" ]
then
exec java $ROBOT_JAVA_ARGS -jar "$(cygpath -w $DIR/robot.jar)" "$@"
else
exec java $ROBOT_JAVA_ARGS -jar "$DIR/robot.jar" "$@"
fi
Binary file added tools/robot.jar
Binary file not shown.