dimanche 26 mars 2017

Tox: Permission Denied when running tests

I'm getting this error both locally and from TravisCI when running tox. I've tried updating all of the requirements and tweaking the tox.ini's install_command to no avail. Any ideas?

Incidentally I've also tried swapping ./runtests.py to an arbitrary ./file.py to see if it would work– I still get a Errno 13 Permission Denied error. I've also tried sudo tox and get the same Permission Denied error.

ERROR: invocation failed (errno 13), args: ['/Users/Aaron/Documents/Projects/organelle/runtests.py', '--lintonly'], cwd: /Users/Aaron/Documents/Projects/organelle

Here's my tox.ini

[tox]
envlist =
       py35-flake8,
       {py33,py34,py35}-django{1.8,1.9,1.10}-drf{3.1,3.2,3.3,3.4,3.5,3.6}

[testenv]
commands = ./runtests.py --fast {posargs} --verbose
setenv =
       PYTHONDONTWRITEBYTECODE=1
deps =
       django1.8: Django<1.9
       django1.9: Django<1.10
       django1.10: Django<1.11
       drf3.1: djangorestframework<3.2
       drf3.2: djangorestframework<3.3
       drf3.3: djangorestframework<3.4
       drf3.4: djangorestframework<3.5
       drf3.5: djangorestframework<3.6
       drf3.6: djangorestframework<3.7
       -rrequirements/testing.txt

[testenv:py35-flake8]
commands = ./runtests.py --lintonly
deps =
       -rrequirements/codestyle.txt
       -rrequirements/testing.txt

Aucun commentaire:

Enregistrer un commentaire