-
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix CI with the quirks of old and new QGIS docker images
- Loading branch information
1 parent
c395d37
commit dd624a5
Showing
3 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,17 @@ FROM qgis/qgis:${QGIS_TEST_VERSION} | |
MAINTAINER Matthias Kuhn <[email protected]> | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
python3-pip \ | ||
&& apt-get install -y python3-pip \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY ./requirements.txt /tmp/ | ||
RUN pip3 install -r /tmp/requirements.txt | ||
|
||
# Upgrading `pip` fixes: "WARNING: Generating metadata for package libqfieldsync produced metadata for project name unknown. Fix your #egg=libqfieldsync fragments." | ||
# However, in QGIS>=3.38, this command fail as `pip` is Debian installed and protected, hence we have `|| true`. | ||
RUN pip3 install --upgrade pip || true | ||
|
||
# images for QGIS<=3.34 uses much older `pip` that does not support `--break-system-packages` | ||
RUN pip3 install -r /tmp/requirements.txt || pip3 install -r /tmp/requirements.txt --break-system-packages | ||
|
||
ENV LANG=C.UTF-8 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
flake8==2.5.5 | ||
pep8-naming | ||
flake8-respect-noqa | ||
nose2 | ||
pytest | ||
future | ||
transifex-client | ||
|