Commit e0a3ee94 authored by Jerome Flesch's avatar Jerome Flesch
Browse files

Replace run_tests.sh by tox



Signed-off-by: Jerome Flesch's avatarJerome Flesch <jflesch@openpaper.work>
parent 7463ef7b
......@@ -68,7 +68,8 @@ output_img = pillowfight.ace(input_img)
### Tests
```sh
$ python3 ./setup.py nosetests
$ sudo pip3 install tox
$ tox
```
Test reference images are made on amd64. They should match also on i386.
......
#!/bin/sh
ret=0
for pyver in python3 ; do
echo "# Testing with ${pyver}"
rm -rf venv-${pyver}
virtualenv -p ${pyver} venv-${pyver}
. venv-${pyver}/bin/activate
if ! ${pyver} ./setup.py install ; then
echo "Install failed"
exit 1
fi
if ! ${pyver} ./setup.py nosetests ; then
echo "Tests failed"
ret=1
fi
done
exit ${ret}
[tox]
envlist=py36
[testenv]
deps=nose
commands=nosetests
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment