File tree Expand file tree Collapse file tree 5 files changed +12
-16
lines changed
Expand file tree Collapse file tree 5 files changed +12
-16
lines changed Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ set -e
1818pushd .docker
1919
2020docker --version
21- docker-compose --version
22- docker-compose -f $DOCKER_COMPOSE config
2321# docker pull ubuntu:16.04
2422docker pull " qgis/qgis3-build-deps:${DOCKER_TAG} " || true
25- docker build --cache-from " qgis/qgis3-build-deps:${DOCKER_TAG} " -t " qgis/qgis3-build-deps:${DOCKER_TAG} " .
23+ docker build --file deps-Dockerfile \
24+ --cache-from " qgis/qgis3-build-deps:${DOCKER_TAG} " \
25+ --tag " qgis/qgis3-build-deps:${DOCKER_TAG} " .
2626# image should be pushed even if QGIS build fails
2727# but push is achieved only on branches (not for PRs)
2828if [[ $DOCKER_PUSH =~ true ]]; then
Original file line number Diff line number Diff line change 1212# (at your option) any later version. #
1313# #
1414# ##########################################################################
15-
16- shopt -s expand_aliases
17- alias python=python3
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ pushd $DIR
2121
2222mkdir -p $CCACHE_DIR
2323
24- docker-compose -f $DOCKER_COMPOSE run --rm qgis-deps
24+ docker-compose --version
25+ docker-compose -f $DOCKER_COMPOSE config
26+ docker-compose -f $DOCKER_COMPOSE run --rm qgis-build-and-test
2527
2628popd
Original file line number Diff line number Diff line change @@ -104,10 +104,3 @@ ENV QT_SELECT=5
104104# RUN ${CXX} --version
105105
106106RUN apt-get install -y git
107-
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-
113- CMD /root/QGIS/.ci/travis/linux/docker-build-test.sh
Original file line number Diff line number Diff line change @@ -5,15 +5,19 @@ services:
55 environment :
66 - ALLOW_IP_RANGE="172.18.0.0/16"
77
8- qgis-deps :
8+ qgis-build-and-test :
9+ build :
10+ context : .
11+ dockerfile : build-Dockerfile
912 tty : true
10- image : qgis/qgis3-build-deps :${DOCKER_TAG}
13+ image : qgis/qgis3-run :${DOCKER_TAG}
1114 volumes :
1215 - ${TRAVIS_BUILD_DIR}:/root/QGIS
1316 - $HOME/.ccache:/root/.ccache # if changed, also change env var
1417 links :
1518 - postgres
1619 environment :
20+ - DOCKER_TAG=${DOCKER_TAG}
1721 - CCACHE_DIR=/root/.ccache
1822 - CTEST_BUILD_DIR=/root/QGIS
1923 - TRAVIS_BRANCH=${TRAVIS_BRANCH}
You can’t perform that action at this time.
0 commit comments