2018-04-05 21:24:12 +02:00
|
|
|
sudo: required
|
2018-04-13 15:27:52 +02:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "3.4"
|
|
|
|
- "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
|
|
|
|
- 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
|
|
|
|
# Install the binary, also fireing the debian scripts
|
|
|
|
- sudo apt install ../*.deb -y
|
|
|
|
# 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
|