I want to run tests of my python project on Appveyor under Linux.
I have tried without installing tox. Here is the appveyor.yml :
# appveyor.yml
---
image:
- Ubuntu
build: off
test_script:
- tox
My build fails . It says:
/opt/appveyor/build-agent/bash-shell.sh: line 62: tox: command not found
OK, let's install tox first... Here is my new appveyor.yml , which is based on this guide . (I've just added the Ubuntu image.)
# appveyor.yml
---
environment:
matrix:
- TOXENV: py36
image:
- Ubuntu
build: off
install:
- pip install tox
test_script:
- tox
However, build fails again. It says:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pyparsing.py'
How to run tox on Appveyor under Ubuntu?
Either use sudo
to become root:
sudo pip install tox
or install in your $HOME
:
pip install tox --user
and add ~/.local/bin
to $PATH
; or run ~/.local/bin/tox
directly.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.