update tests

This commit is contained in:
Nikolay Khabarov
2017-05-14 03:10:34 +03:00
parent 4f0b4d361d
commit 1a7670357c
2 changed files with 4 additions and 4 deletions

View File

@@ -1,7 +1,9 @@
language: python
python:
- "2.7"
- "3.5"
- "pypy-5.3.1"
install: # nothing
install:
- pip install .
script: ./runtests.sh

View File

@@ -11,12 +11,10 @@ echo '* run with RPi board with connected to pin GPIO21 LED. LED should *'
echo '* light up on pullup, set, and DMA test events. *'
echo '**********************************************************************'
echo '---------------------------Unit tests---------------------------------'
pypy -m unittest discover "$@" --pattern="test_*.py"
python -m unittest discover "$@" --pattern="test_*.py"
echo '-----------------------Integration tests------------------------------'
sudo pip install .
res="$(pycnc tests/rects.gcode 2>&1)"
res="$res$(pycnc tests/test_parser.gcode 2>&1)"
sudo pip uninstall -y pycnc
if echo "$res" | grep -q -i error; then
echo "$res"
exit 1