Skip to content

Commit

Permalink
build image with RelWithDebIndo type to benefit from cache
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Nov 18, 2018
1 parent bd2f9f9 commit d23f2ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/travis/linux/docker-build-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
# Setup ccache
##############
export CCACHE_TEMPDIR=/tmp
ccache -M 1G
ccache -M 2G

# Temporarily uncomment to debug ccache issues
# export CCACHE_LOGFILE=/tmp/cache.debug
Expand Down
6 changes: 4 additions & 2 deletions .docker/qgis.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,18 @@ ENV LANG=C.UTF-8

COPY . /usr/src/QGIS

WORKDIR /tmp
ENV CCACHE_TEMPDIR=/tmp
ENV CCACHE_DIR=/usr/src/QGIS/.ccache
RUN ccache -M 1G
RUN ccache -M 2G
RUN ccache -s

WORKDIR /usr/src/QGIS/build

RUN cmake \
-GNinja \
-DUSE_CCACHE=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_DESKTOP=ON \
-DWITH_SERVER=ON \
Expand Down

0 comments on commit d23f2ad

Please sign in to comment.