-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
25 lines (21 loc) · 1.07 KB
/
Copy path.travis.yml
File metadata and controls
25 lines (21 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# specify python as the language
language: python
# python versions to be used for testing
python:
- "2.6"
- "2.7"
# install jython
before_install:
- export JYTHON_URL='http://central.maven.org/maven2/org/python/jython-installer/2.7.0/jython-installer-2.7.0.jar'
- wget $JYTHON_URL -O jython_installer.jar; java -jar jython_installer.jar -s -d $HOME/jython; export PATH=$HOME/jython/bin:$PATH;jython --version
before_script:
- jython -c "print ''" # Before run the test case, we need to make jython run some code
- git clone https://github.com/hdietze/Brain.git # clone Brain with updated OWL-API
- cd Brain; mvn install; cd .. # install with maven
- mvn package # use maven to assemble java jar dependencies in lib folder
- export CLASSPATH=lib/* # set up class using a wildcard (supported as of Java 6 or later)
# test script
script:
- jython print_args.py a b c 1 2 3 # python only test
- jython call_owltools.py # jython test calling owltools
- jython call_brain.py # jyhton test call into brain