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 <jvalleroy@mailbox.org>
Reviewed-by: Joseph Nuthalapati <njoseph@thoughtworks.com>
This commit is contained in:
James Valleroy 2018-07-13 22:19:23 -04:00 committed by Joseph Nuthalapati
parent e3e970a7a9
commit 8dc4d793df
No known key found for this signature in database
GPG Key ID: 5398F00A2FA43C35

View File

@ -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