From caf717745248c14d2e2849cfb1a7d576f548102f Mon Sep 17 00:00:00 2001 From: Adrian Freihofer Date: Mon, 25 Feb 2019 22:49:08 +0100 Subject: [PATCH] Call pytest from ci/semaphore.sh --- ci/semaphore.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/semaphore.sh b/ci/semaphore.sh index 0be10aaab..52b649a50 100755 --- a/ci/semaphore.sh +++ b/ci/semaphore.sh @@ -2,9 +2,10 @@ set -ex +# Build an image sudo add-apt-repository --yes ppa:jonathonf/python-3.6 sudo apt --yes update -sudo apt --yes install python3.6 debootstrap systemd-container squashfs-tools +sudo apt --yes install python3.6 python3-pip debootstrap systemd-container squashfs-tools testimg() { @@ -20,3 +21,7 @@ do imgname="$(basename "$i" | cut -d. -f 2-)" testimg "$imgname" done + +# Run unit tests +python3.6 -m pip install -U pytest +python3.6 -m pytest -- 2.47.2