Skip to content

Commit

Permalink
build Disco Docker image with GCC
Browse files Browse the repository at this point in the history
freeze happens with clang when building the bindings
  • Loading branch information
3nids committed Jun 18, 2019
1 parent f319235 commit 8474a54
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .ci/travis/docker_image/script.sh
Expand Up @@ -28,6 +28,7 @@ echo "${bold}Building QGIS Docker image '${DOCKER_TAG}'...${endbold}"
docker build --build-arg DOCKER_TAG="${DOCKER_TAG}" \
--cache-from "qgis/qgis:${DOCKER_TAG}" \
-t "qgis/qgis:${DOCKER_TAG}" \
--build-arg CC --build-arg CXX \
-f qgis.dockerfile ..
echo "${bold}Pushing image to docker hub...${endbold}"
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
Expand Down
4 changes: 2 additions & 2 deletions .docker/qgis.dockerfile
Expand Up @@ -9,8 +9,8 @@ MAINTAINER Denis Rouzaud <denis@opengis.ch>

LABEL Description="Docker container with QGIS" Vendor="QGIS.org" Version="1.1"

ENV CC=/usr/lib/ccache/clang
ENV CXX=/usr/lib/ccache/clang++
ARG CC=/usr/lib/ccache/clang
ARG CXX=/usr/lib/ccache/clang++
ENV QT_SELECT=5
ENV LANG=C.UTF-8

Expand Down
4 changes: 4 additions & 0 deletions .travis.yml
Expand Up @@ -111,6 +111,8 @@ matrix:
- TRIGGER_PYQGIS_DOC=FALSE
- DOCKER_TAG=$( echo $TRAVIS_BRANCH | sed 's/master/latest/' )
- DOCKER_BUILD_DEPS_FILE=qgis3-build-deps.dockerfile
- CC=/usr/lib/ccache/clang
- CXX=/usr/lib/ccache/clang++

##########################################################
# DISCO DOCKER BUILD ON CRON OR TAG
Expand All @@ -126,6 +128,8 @@ matrix:
- DOCKER_TAG="$( echo $TRAVIS_BRANCH | sed 's/master/latest/' )_disco"
- DOCKER_BUILD_DEPS_FILE=qgis3-build-deps-disco.dockerfile
- INSTALL_LIBSECCOMP=TRUE
- CC=/usr/lib/ccache/gcc
- CXX=/usr/lib/ccache/g++ # Building SIP binding freezes with Clang in Docker, maybe a SIP issue, maybe not



Expand Down

0 comments on commit 8474a54

Please sign in to comment.