0
0
Fork 0
mirror of https://github.com/boltgolt/howdy.git synced 2024-09-19 09:51:19 +02:00
howdy/.travis.yml

33 lines
903 B
YAML
Raw Normal View History

2018-04-05 21:24:12 +02:00
sudo: required
2018-04-13 15:27:52 +02:00
language: python
2018-11-09 12:43:10 +01:00
python: "3.6"
2018-04-05 21:24:12 +02:00
2018-04-13 14:54:06 +02:00
install:
2018-04-13 15:27:52 +02:00
# Install build tools and ack-grep for checks
2018-11-09 12:43:10 +01:00
# - sudo apt install devscripts dh-make ack-grep -y
2018-04-05 21:24:12 +02:00
2018-04-07 16:30:31 +02:00
script:
2018-04-13 15:27:52 +02:00
# Build the binary (.deb)
- debuild -i -us -uc -b
2018-11-09 12:43:10 +01:00
# Install the binary, running the debian scripts in the process
2018-04-13 15:27:52 +02:00
- sudo apt install ../*.deb -y
2018-11-09 12:43:10 +01:00
# Confirm the face_recognition module has been installed correctly
- 'python3 -c "import face_recognition; print(\"OK\")" | ack-grep --passthru "OK"'
2018-04-13 15:27:52 +02:00
# Check if the username passthough works correctly with sudo
- 'howdy | ack-grep --passthru --color "current active user: travis"'
- 'sudo howdy | ack-grep --passthru --color "current active user: travis"'
# Remove howdy from the installation
- sudo apt purge howdy -y
2018-04-05 21:24:12 +02:00
notifications:
2018-04-13 14:54:06 +02:00
email:
on_success: never
on_failure: always
2018-05-10 15:20:29 +02:00
addons:
apt:
update: true
2018-11-09 12:43:10 +01:00
packages:
- dh-make
- ack-grep