Skip to content
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

[CI] check native backends on linux when installed from pip #751

Merged
merged 3 commits into from
Mar 25, 2020
Merged
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
5 changes: 4 additions & 1 deletion data/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ jobs:
pip install dist/*.whl
urh --version
xvfb-run urh autoclose
displayName: 'Testrun'
displayName: 'Test Run'

- script: python data/check_native_backends.py
displayName: 'Check native backends'

- script: twine upload --skip-existing dist/*
displayName: "PyPi Upload"
Expand Down
15 changes: 15 additions & 0 deletions data/check_native_backends.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env python3

import importlib
import sys
rc = 0

for sdr in ("AirSpy", "BladeRF", "HackRF", "RTLSDR", "LimeSDR", "PlutoSDR", "SDRPlay", "USRP"):
try:
importlib.import_module('.{}'.format(sdr.lower()), 'urh.dev.native.lib')
print("{:<10} \033[92mSUCCESS\033[0m".format(sdr+":"))
except ImportError as e:
print("{:<10} \033[91mFAILURE\033[0m ({})".format(sdr+":", e))
rc = 1

sys.exit(rc)
Empty file removed tests/docker/__init__.py
Empty file.
29 changes: 0 additions & 29 deletions tests/docker/archlinux/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions tests/docker/archlinux/install_from_aur.sh

This file was deleted.

30 changes: 0 additions & 30 deletions tests/docker/centos7/Dockerfile

This file was deleted.

10 changes: 0 additions & 10 deletions tests/docker/debian8/Dockerfile

This file was deleted.

6 changes: 0 additions & 6 deletions tests/docker/debian8/install_from_source.sh

This file was deleted.

47 changes: 0 additions & 47 deletions tests/docker/docker_util.py

This file was deleted.

3 changes: 0 additions & 3 deletions tests/docker/fedora25/Dockerfile

This file was deleted.

15 changes: 0 additions & 15 deletions tests/docker/gentoo/Dockerfile

This file was deleted.

5 changes: 0 additions & 5 deletions tests/docker/gentoo/run_from_source.sh

This file was deleted.

11 changes: 0 additions & 11 deletions tests/docker/info.txt

This file was deleted.

10 changes: 0 additions & 10 deletions tests/docker/kali/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions tests/docker/kali/install_with_pip.sh

This file was deleted.

26 changes: 0 additions & 26 deletions tests/docker/ubuntu1404/Dockerfile

This file was deleted.

4 changes: 0 additions & 4 deletions tests/docker/ubuntu1404/install_with_pip.sh

This file was deleted.

14 changes: 0 additions & 14 deletions tests/docker/ubuntu1604/Dockerfile

This file was deleted.

10 changes: 0 additions & 10 deletions tests/docker/ubuntu1604/test_native_backends_installed.sh

This file was deleted.