Strider-CD / strider-python

Python/Pyramid/Django support for Strider Continuous Deployment
6 stars 9 forks source link

Error with Docker Runner #16

Open abusquets opened 7 years ago

abusquets commented 7 years ago

I have this error (below) when I try to test a python project with Docker Runner. This not happens with a node project.

$ git clone --recursive git\@github.com\:abusquets/django-coverage.git . --branch master github 11s fatal: destination path '.' already exists and is not an empty directory.

I checked /home/strider/workspace folder in the image and is empty.

I think the problem is the python virtualenv folder.

"New python executable in /home/strider/workspace/.venv/bin/python"

Do you have any idea to solve this problem?

Thanks

abusquets commented 7 years ago

Changing this line https://github.com/Strider-CD/strider-python/blob/master/worker.js#L19 to var venvDir = path.join(context.baseDir, '..', '.venv'); This problem is solved but I still have another problem, I don't have the environment enabled.

And I should install requirements like

/home/strider/.venv/bin/pip install -r requirements.txt

and run the tests like

/home/strider/.venv/bin/python manage.py test

Another way is use a Custom Script Plugin captura_2017-07-08_00-11-17