From 6cb177a09c59bff6115f21076fd2a8cb357eea41 Mon Sep 17 00:00:00 2001 From: Jacob Rockland Date: Tue, 29 May 2018 18:01:12 -0600 Subject: [PATCH 01/17] added basic import test --- .circleci/config.yml | 4 ++++ test.py | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test.py diff --git a/.circleci/config.yml b/.circleci/config.yml index aadd8ce..616de27 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -27,3 +27,7 @@ jobs: - run: name: Install ZorbPy command: cd ~/repo && pip install --user . + + - run: + name: Test ZorbPy Import + command: cd ~/repo && python test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..4a592f9 --- /dev/null +++ b/test.py @@ -0,0 +1,12 @@ +import zorb + +def mainloop(): + pass + + +def main(): + zorb.run(mainloop) + + +if __name__ == '__main__': + main() From 79c17f65cbd61ef1ed6ea86602b9d8d7ff53008a Mon Sep 17 00:00:00 2001 From: Jacob Rockland Date: Thu, 31 May 2018 17:17:34 -0600 Subject: [PATCH 02/17] install bluez --- .circleci/config.yml | 4 ++++ .circleci/install_bluez.sh | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100755 .circleci/install_bluez.sh diff --git a/.circleci/config.yml b/.circleci/config.yml index 616de27..832f659 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,6 +20,10 @@ jobs: steps: - checkout + - run: + name: Install BlueZ + command: cd ~/repo && .circleci/install_bluez.sh + - run: name: Install BluefruitLE command: git clone git@github.com:adafruit/Adafruit_Python_BluefruitLE.git && cd Adafruit_Python_BluefruitLE && sudo python setup.py install && cd .. diff --git a/.circleci/install_bluez.sh b/.circleci/install_bluez.sh new file mode 100755 index 0000000..0f69e58 --- /dev/null +++ b/.circleci/install_bluez.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +sudo apt-get update +sudo apt-get -y install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev +wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.33.tar.gz +tar xvfz bluez-5.33.tar.gz +cd bluez-5.33 +./configure --disable-systemd +make +sudo make install +sudo cp ./src/bluetoothd /usr/local/bin/ + +/usr/local/bin/bluetoothd --experimental & From 6f7bc76c5324e298d2b0950510ff67030bc5f3d2 Mon Sep 17 00:00:00 2001 From: Jacob Rockland Date: Thu, 31 May 2018 17:21:27 -0600 Subject: [PATCH 03/17] exit script on error --- .circleci/install_bluez.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/install_bluez.sh b/.circleci/install_bluez.sh index 0f69e58..8901b3d 100755 --- a/.circleci/install_bluez.sh +++ b/.circleci/install_bluez.sh @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/sh -e sudo apt-get update sudo apt-get -y install libusb-dev libdbus-1-dev libglib2.0-dev libudev-dev libical-dev libreadline-dev From 5fa6a8046d58078aaa0a110b1ba1f859e6998887 Mon Sep 17 00:00:00 2001 From: Jacob Rockland Date: Thu, 31 May 2018 17:24:49 -0600 Subject: [PATCH 04/17] Try installing BlueZ with snap --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 832f659..5e36b94 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: cd ~/repo && .circleci/install_bluez.sh + command: snap install bluez - run: name: Install BluefruitLE From 6eb52fc9de633a61b86f9f12b0589870cc621c8b Mon Sep 17 00:00:00 2001 From: Jacob Rockland Date: Thu, 31 May 2018 17:27:19 -0600 Subject: [PATCH 05/17] install snap to install BlueZ --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5e36b94..2515644 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: snap install bluez + command: sudo apt-get install snapd && sudo snap install bluez - run: name: Install BluefruitLE From 93430591d4b4fa4d3d48cb86fec61321ace858be Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:22:45 -0600 Subject: [PATCH 06/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2515644..ffc05dc 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs: docker: # specify the version you desire here # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers` - - image: circleci/python:2.7-browsers + - image: circleci/ubuntu-server # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images From 3106eb82601c96549ba810288c8eb5900d15667e Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:23:40 -0600 Subject: [PATCH 07/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ffc05dc..4924226 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: sudo apt-get install snapd && sudo snap install bluez + command: sudo apt-get update && sudo apt-get install snapd && sudo snap install bluez - run: name: Install BluefruitLE From c680b4dd7084ee71beaea3271b87fd80974d2bfa Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:24:12 -0600 Subject: [PATCH 08/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4924226..06da4e8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: sudo apt-get update && sudo apt-get install snapd && sudo snap install bluez + command: sudo apt-get update && sudo apt-get -y install snapd && sudo snap install bluez - run: name: Install BluefruitLE From fdd81bc1f452a0c1822d1b390cd25a3ed1bbb901 Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:27:45 -0600 Subject: [PATCH 09/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 06da4e8..dfae59c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: sudo apt-get update && sudo apt-get -y install snapd && sudo snap install bluez + command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install snapd && sudo snap install bluez - run: name: Install BluefruitLE From dfccc52682e0104b2cc1dfed238c4b3e67ad0067 Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:29:46 -0600 Subject: [PATCH 10/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index dfae59c..5f28584 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install snapd && sudo snap install bluez + command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install snapd && sudo snap install bluez - run: name: Install BluefruitLE From e15b5f27fb882bf89a46967583bc6a5f24220a97 Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:32:21 -0600 Subject: [PATCH 11/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5f28584..2a9592d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -8,7 +8,7 @@ jobs: docker: # specify the version you desire here # use `-browsers` prefix for selenium tests, e.g. `3.6.1-browsers` - - image: circleci/ubuntu-server + - image: circleci/buildpack-deps:18.04-scm-browsers # Specify service dependencies here if necessary # CircleCI maintains a library of pre-built images From 4f04757c41aa854f5b4e3015ac17cb188b8f2f18 Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:33:44 -0600 Subject: [PATCH 12/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2a9592d..23a350b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install snapd && sudo snap install bluez + command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install snapd && sudo systemctl restart snapd.service && sudo snap install bluez - run: name: Install BluefruitLE From 3c944da19c963792c1ebd5e55d68b68051847d9b Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:35:28 -0600 Subject: [PATCH 13/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 23a350b..335e054 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install snapd && sudo systemctl restart snapd.service && sudo snap install bluez + command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install snapd && sudo service snapd start && sudo snap install bluez - run: name: Install BluefruitLE From d0cf0c817d914ae1844002ca8611e41edf3e9316 Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:36:58 -0600 Subject: [PATCH 14/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 335e054..4cbea95 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install snapd && sudo service snapd start && sudo snap install bluez + command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install bluez - run: name: Install BluefruitLE From 1cdf9c240b05124f141cd833a2e97cf5fe907411 Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:38:07 -0600 Subject: [PATCH 15/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4cbea95..7eb343c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install bluez + command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install bluez python-setuptools - run: name: Install BluefruitLE From 59dbdd71319100ed914eead07bf2a9e7df948735 Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:39:36 -0600 Subject: [PATCH 16/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7eb343c..575c65b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install bluez python-setuptools + command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install bluez python-setuptools python-pip python-dev - run: name: Install BluefruitLE From 3032fcf4bf38150a8a8cf89ba5870163875d7d8e Mon Sep 17 00:00:00 2001 From: Shantanu Bala Date: Fri, 5 Oct 2018 15:42:44 -0600 Subject: [PATCH 17/17] Update config.yml --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 575c65b..543628e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,7 +22,7 @@ jobs: - run: name: Install BlueZ - command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install bluez python-setuptools python-pip python-dev + command: sudo apt-get update && DEBIAN_FRONTEND=noninteractive sudo apt-get -yq upgrade && sudo apt-get -y install bluez python-setuptools python-pip python-dev dbus python-dbus python-dbus-dev - run: name: Install BluefruitLE