A mini tox server for calling tox in a loop
Project description
Tox Server
tox-server
is a command line tool which runs tox in a loop
and calls it with commands from a remote CLI. It responds to commands
via ZeroMQ. It isn't super useful on its own (as it doesn't eliminate the startup time for tox, just runs it repeatedly) but it is
helpful if your tests have to be run inside another environment with some setup cost, such as a docker container.
Installation
You can use pip
to install tox-server
:
$ pip install tox-server
Run the server
On the remote host:
$ tox-server serve
The server binds to 127.0.0.1
(i.e. it will only accept connections from localhost) because it is
not secured. If you are running it on an isolated network (like via docker), you can bind it to another host
with tox-server -b 0.0.0.0 serve
.
Run a tox command remotely
On your local host, you can run a tox command:
$ tox-server run -e py37
This will run tox -e py37
on the remote host.
A note on security
Basically, security is hard. This program doesn't provide any authentication mechanism, and I'm not tempted
to add one. Before you expose ports from tox-server
to the world wide web, I'd advise using something like
SSH tunneling to provide security and authentication.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for tox_server-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4eecbf96b38d6406e4b556d555971b9e471836dc9560a0532cd3b8c4a4f34e46 |
|
MD5 | 8ba86adf8d6035aba4b78a8ef14d77c5 |
|
BLAKE2b-256 | 8982fe87a5048972e93c6251a23792baeccfda6e52b2547c14d6fbaa7c7d30de |