-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (22 loc) · 832 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM qgis/qgis:release-3_18
WORKDIR namari
COPY Pipfile* ./
RUN pip3 install pipenv==2020.11.15 \
&& pipenv install --dev --deploy --system
ENV XDG_RUNTIME_DIR=/tmp
# Copy all assets
COPY . ./
# Reconfigure plugin builder tool to deploy to new plugin location
RUN grep -v plugin_path pb_tool.cfg > pb_tool_docker.cfg
RUN cat pb_tool_docker.cfg
# Run type and code style checks
RUN mypy .
RUN flake8 .
# Run the more simple unit tests
RUN python3 -m unittest discover .
ENV PLUGIN_DIR=/QGIS/build/output/python/plugins
# Deploy plugin to standard plugins dir
RUN cd namari && pb_tool deploy --config_file ../pb_tool_docker.cfg --plugin_path $PLUGIN_DIR --no-confirm
# Run the integration tests by using the test script
ENV PYTHONPATH=$PYTHONPATH:/namari/test:$PLUGIN_DIR
RUN xvfb-run qgis_testrunner.sh integration_test