From: Adrian Freihofer Date: Mon, 25 Feb 2019 21:49:08 +0000 (+0100) Subject: Call pytest from ci/semaphore.sh X-Git-Tag: v6~122^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F330%2Fhead;p=thirdparty%2Fmkosi.git Call pytest from ci/semaphore.sh --- 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