Skip to content

Commit 4600ce5

Browse files
3nidsm-kuhn
authored andcommitted
some fixes
1 parent 531dadf commit 4600ce5

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

.ci/travis/linux/docker-build-test.sh

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,27 @@
22

33
set -e
44

5+
# locale-gen en_US.UTF-8
6+
# export LANG=en_US.UTF-8
7+
# export LANGUAGE=en_US:en
8+
# export LC_ALL=en_US.UTF-8
9+
510
export CTEST_PARALLEL_LEVEL=1
611
export CCACHE_TEMPDIR=/tmp
712
ccache -M 500M
813
ccache -z
914

1015
cd /root/QGIS
1116

12-
printf "[qgis_test]\nhost=postgres\nport=5432\ndbname=docker\nuser=docker\npassword=docker" > ~/.pg_service.conf
17+
sleep 20
18+
19+
printf "[qgis_test]\nhost=postgres\nport=5432\ndbname=qgis_test\nuser=docker\npassword=docker" > ~/.pg_service.conf
1320
export PGUSER=docker
1421
export PGHOST=postgres
1522
export PGPASSWORD=docker
23+
export PGDATABASE=qgis_test
24+
25+
# export PYTHONIOENCODING="utf-8"
1626

1727
/root/QGIS/tests/testdata/provider/testdata_pg.sh
1828

@@ -37,7 +47,6 @@ cmake \
3747
-DCXX_EXTRA_FLAGS=${CLANG_WARNINGS} ..
3848

3949
export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
40-
4150
export CTEST_BUILD_COMMAND="/usr/bin/ninja"
4251

4352
ninja

.docker/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,9 @@ ENV QT_SELECT=5
105105

106106
RUN apt-get install -y git
107107

108+
# RUN locale-gen en_US.UTF-8
109+
# ENV LANG=en_US.UTF-8
110+
# ENV LANGUAGE=en_US:en
111+
# ENV LC_ALL=en_US.UTF-8
112+
108113
CMD /root/QGIS/.ci/travis/linux/docker-build-test.sh

.docker/docker-compose.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@ version: '3'
22
services:
33
postgres:
44
image: kartoza/postgis:9.5-2.2
5-
command: sh -c "echo \"host all all 172.18.0.0/16 md5\" >> /etc/postgresql/9.5/main/pg_hba.conf && /start-postgis.sh"
5+
environment:
6+
- ALLOW_IP_RANGE="172.18.0.0/16"
67

78
qgis-deps:
9+
tty: true
810
image: qgis/qgis3-build-deps:${DOCKER_TAG}
911
volumes:
1012
- ${TRAVIS_BUILD_DIR}:/root/QGIS

tests/testdata/provider/testdata_pg.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ SCRIPTS="
1414
dropdb qgis_test 2> /dev/null || true
1515
createdb qgis_test || exit 1
1616
for f in ${SCRIPTS}; do
17-
psql --echo-errors -f $f qgis_test -v ON_ERROR_STOP=1
17+
psql -q --echo-errors -f $f qgis_test -v ON_ERROR_STOP=1
1818
done

0 commit comments

Comments
 (0)