Skip to content

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 12, 2017
1 parent 310b410 commit 3ee0c52
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .ci/travis/linux/docker-build-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@

set -e

# locale-gen en_US.UTF-8
# export LANG=en_US.UTF-8
# export LANGUAGE=en_US:en
# export LC_ALL=en_US.UTF-8

export CTEST_PARALLEL_LEVEL=1
export CCACHE_TEMPDIR=/tmp
ccache -M 500M
ccache -z

cd /root/QGIS

printf "[qgis_test]\nhost=postgres\nport=5432\ndbname=docker\nuser=docker\npassword=docker" > ~/.pg_service.conf
printf "[qgis_test]\nhost=postgres\nport=5432\ndbname=qgis_test\nuser=docker\npassword=docker" > ~/.pg_service.conf
export PGUSER=docker
export PGHOST=postgres
export PGPASSWORD=docker
export PGDATABASE=qgis_test

# export PYTHONIOENCODING="utf-8"

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

Expand All @@ -37,7 +45,6 @@ cmake \
-DCXX_EXTRA_FLAGS=${CLANG_WARNINGS} ..

export LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so

export CTEST_BUILD_COMMAND="/usr/bin/ninja"

ninja
Expand Down
5 changes: 5 additions & 0 deletions .docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,9 @@ ENV QT_SELECT=5

RUN apt-get install -y git

# RUN locale-gen en_US.UTF-8
# ENV LANG=en_US.UTF-8
# ENV LANGUAGE=en_US:en
# ENV LC_ALL=en_US.UTF-8

CMD /root/QGIS/.ci/travis/linux/docker-build-test.sh
4 changes: 3 additions & 1 deletion .docker/docker-compose.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ version: '3'
services:
postgres:
image: kartoza/postgis:9.5-2.2
command: sh -c "echo \"host all all 172.18.0.0/16 md5\" >> /etc/postgresql/9.5/main/pg_hba.conf && /start-postgis.sh"
environment:
- ALLOW_IP_RANGE="172.18.0.0/16"

qgis-deps:
tty: true
image: qgis/qgis3-build-deps:${DOCKER_TAG}
volumes:
- ${TRAVIS_BUILD_DIR}:/root/QGIS
Expand Down
2 changes: 1 addition & 1 deletion tests/testdata/provider/testdata_pg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ SCRIPTS="
dropdb qgis_test 2> /dev/null || true
createdb qgis_test || exit 1
for f in ${SCRIPTS}; do
psql --echo-errors -f $f qgis_test -v ON_ERROR_STOP=1
psql -q --echo-errors -f $f qgis_test -v ON_ERROR_STOP=1
done

0 comments on commit 3ee0c52

Please sign in to comment.