Run the tests on a CI (#215)

* Add CircleCI and make tests pass on ubuntu:16.04
* Add badge to readme
* Add debian stable to CircleCI
* Fix pkill on CircleCI debian
This commit is contained in:
Aymeric Beaumet
2017-09-15 17:15:12 +02:00
committed by Tom Limoncelli
parent 9165a77d15
commit d7b4fd544d
3 changed files with 58 additions and 2 deletions

View File

@@ -225,7 +225,7 @@ become_bob
# This users's default group:
DEFAULT_GID_NUM=$(id -g)
# Pick a group that is not the default group:
TEST_GID_NUM=$(id -G | fmt -1 | sort -rn | grep -xv "$(id -u)" | grep -xv "$(id -g)" | head -1)
TEST_GID_NUM=$(grep -v "$DEFAULT_GID_NUM" /etc/group | cut -d: -f3 | sort -rn | head -1)
echo "DEFAULT_GID_NUM=$DEFAULT_GID_NUM"
echo "TEST_GID_NUM=$TEST_GID_NUM"