Skip to content

Commit 773f9bd

Browse files
committed
Add bash scripts to help install and test
Add useful bash scripts to install and run pytest for all versions of Python that I'm currently running on my BeagleBone. "python" package in Debian 9.2: Python 2.7.13 "python3" package in Debian 9.2: Python 3.5.3 compiled from source by myself on a beaglebone: Python 3.6.3 Example usage: debian@beaglebone:~/ssh/adafruit-beaglebone-io-python$ sudo ./install_all_python_versions.sh && ./pytest_all_versions.sh Signed-off-by: Drew Fustini <drew@pdp7.com>
1 parent 3b5814f commit 773f9bd

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

install_all_python_versions.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
# useful for testing changes against all versions of python
3+
make clean
4+
echo "Install Python 2.7"
5+
python2.7 ./setup.py install
6+
echo "Install Python 3.5"
7+
python3.5 ./setup.py install
8+
echo "Install Python 3.6"
9+
python3.6 ./setup.py install

pytest_all_versions.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
# useful for testing changes against all versions of python
3+
4+
cd test
5+
echo "Testing Python 2.7"
6+
python2.7 -mpytest
7+
echo "Testing Python 3.5"
8+
python3.5 -mpytest
9+
echo "Testing Python 3.6"
10+
python3.6 -mpytest
11+
cd ..

0 commit comments

Comments
 (0)