Skip to content

added basic import test #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/buildpack-deps:18.04-scm-browsers

# Specify service dependencies here if necessary
# CircleCI maintains a library of pre-built images
Expand All @@ -20,6 +20,18 @@ jobs:
steps:
- checkout

- 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 dbus python-dbus python-dbus-dev

- 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 ..

- run:
name: Install ZorbPy
command: cd ~/repo && pip install --user .

- run:
name: Test ZorbPy Import
command: cd ~/repo && python test.py
13 changes: 13 additions & 0 deletions .circleci/install_bluez.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/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
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 &
12 changes: 12 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import zorb

def mainloop():
pass


def main():
zorb.run(mainloop)


if __name__ == '__main__':
main()