mirror of
https://github.com/sinseman44/PyCNC.git
synced 2026-04-19 18:38:14 +00:00
update tests
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
language: python
|
||||
python:
|
||||
- "2.7"
|
||||
- "3.5"
|
||||
- "pypy-5.3.1"
|
||||
install: # nothing
|
||||
install:
|
||||
- pip install .
|
||||
script: ./runtests.sh
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user