]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Call pytest from ci/semaphore.sh 330/head
authorAdrian Freihofer <adrian.freihofer@gmail.com>
Mon, 25 Feb 2019 21:49:08 +0000 (22:49 +0100)
committerAdrian Freihofer <adrian.freihofer@gmail.com>
Sun, 10 Mar 2019 20:38:47 +0000 (21:38 +0100)
ci/semaphore.sh

index 0be10aaab976f22287ceeb59b2ecdd117c58dc53..52b649a50d4be142bfbe554b38306ae70712db58 100755 (executable)
@@ -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