diff --git a/.travis.yml b/.travis.yml index 95d6041..c1ed9ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,13 +2,16 @@ language: python sudo: required before_install: + - apt install devscripts - git clone https://github.com/Boltgolt/howdy.git /tmp/howdy_build - cd /tmp/howdy_build - debuild -i -us -uc -b -install: sudo apt install ../*.deb +install: sudo apt install ../*.deb -y -script: sudo howdy help +script: + - sudo howdy help + - sudo apt purge howdy -y notifications: email: false diff --git a/debian/prerm b/debian/prerm index 0cd4327..9a6bdb6 100755 --- a/debian/prerm +++ b/debian/prerm @@ -4,27 +4,10 @@ # Import required modules import subprocess -import sys -import os - -# Check if we're running as root -user = os.getenv("SUDO_USER") -if user is None: - print("Please run the uninstaller as a sudo user") - sys.exit() - -# Double check with the user for the last time -print("This will remove Howdy and all models generated with it") -ans = input("Do you want to continue? [y/N]: ") - -# Abort if they don't say yes -if (ans.lower() != "y"): - sys.exit() # Remove files and symlinks subprocess.call(["rm -rf /lib/security/howdy/"], shell=True) subprocess.call(["rm /usr/bin/howdy"], shell=True) -subprocess.call(["rm /etc/bash_completion.d/howdy"], shell=True) # Remove face_recognition and dlib subprocess.call(["pip3 uninstall face_recognition dlib -y"], shell=True)