From 8dc4d793df72ba6a2ad055d22b8fcf69eb5b3859 Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Fri, 13 Jul 2018 22:19:23 -0400 Subject: [PATCH] ci: Use python3.6 when installing dependencies fail2ban install is failing due to incompatibility with python3.7. As a temporary workaround, remove all python3.7 packages before installing dependencies. However, python3-all is a build-dependency, so re-install it before building the package. Signed-off-by: James Valleroy Reviewed-by: Joseph Nuthalapati --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ddecc963c..70a08a66f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,7 @@ before_script: - apt-get install -y build-essential # Build dependencies - apt-get install -y sshpass parted # Test dependencies - apt-get install -y sudo + - apt-get remove -y python3.7* libpython3.7* # Use python3.6 when installing dependencies - apt-get install -y $(./run --list-dependencies) # Module dependencies stages: @@ -25,6 +26,7 @@ run-unit-tests: build-debian-package: stage: package script: + - apt-get build-dep -y . # Re-install python3.7 again - DEB_BUILD_OPTIONS=nocheck dpkg-buildpackage -us -uc -b - mkdir debian-package - mv ../plinth*.deb debian-package