mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-03-25 09:21:10 +00:00
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:
parent
e3e970a7a9
commit
8dc4d793df
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user