Open ptitjano opened 1 year ago
I'm surprised that you do not have the following warning from docker compose:
$ make -C tests/docker test-ows
make: Entering directory '/home/david/Projets/3liz/pyqgisservercontrib-profiles/tests/docker'
mkdir -p $(pwd)/.local $(pwd)/.cache $(pwd)/.workdir
Creating environment file for docker-compose
docker compose \
-f docker-compose.ows.yml up -V --quiet-pull --remove-orphans \
--force-recreate --exit-code-from qgis-server
WARN[0000] The "OWS_SERVER_SRC" variable is not set. Defaulting to a blank string.
1 error(s) decoding:
* error decoding 'volumes[0]': invalid spec: :/server_src: empty section between colons
Makefile:58: recipe for target 'ows-up' failed
make: *** [ows-up] Error 15
make: Leaving directory '/home/david/Projets/3liz/pyqgisservercontrib-profiles/tests/docke
WARN[0000] The "OWS_SERVER_SRC" variable is not set. Defaulting to a blank string.
1 error(s) decoding:
OWS_SERVER_SRC
to the path of the pyqgiserver repo (or run make test OWS_SERVER_SRC=</path/to/pyqgiserver/repo>
Thanks for the reply. I had defined OWS_SERVER_SRC
as the path to pyqgiservercontrib
instead of pyqgiserver
. My bad.
It seems to work fine now. Maybe you could add some explanation in the README
on how to launch the tests. This would make it easier to understand the usage of OWS_SERVER_SRC
I tried to run the test with the command make test but it fails with the following log:
It looks like
'pyqgisserver
is needed. What is the workflow to make it work ?