I develop a python project which uses the package owlready2
. For some of its functionality owlready2 explicitly makes calls like java -jar ...
via the subprocess
-package.
On my local machine this works fine. Now I want to setup CI with drone.io.
My current .drone.yml
looks like this:
---
kind: pipeline
name: python-3-8
steps:
- name: test
image: python:3.8
commands:
- pip install -r requirements.txt
- pip install .
- python -m unittest yamlpyowl.tests
In the test summary I get the error:
...
File "/usr/local/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'java'
which is quite logical as I use the image "python:3.8".
Question: How can I make java available on the testing machine?