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
18
18
pushd .docker
19
19
20
20
docker --version
21
- docker-compose --version
22
- docker-compose -f $DOCKER_COMPOSE config
23
21
# docker pull ubuntu:16.04
24
22
docker 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} " .
26
26
# image should be pushed even if QGIS build fails
27
27
# but push is achieved only on branches (not for PRs)
28
28
if [[ $DOCKER_PUSH =~ true ]]; then
Original file line number Diff line number Diff line change 12
12
# (at your option) any later version. #
13
13
# #
14
14
# ##########################################################################
15
-
16
- shopt -s expand_aliases
17
- alias python=python3
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ docker-compose -f $DOCKER_COMPOSE run --rm qgis-deps
21
21
22
22
mkdir -p $CCACHE_DIR
23
23
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
25
27
26
28
popd
Original file line number Diff line number Diff line change @@ -104,10 +104,3 @@ ENV QT_SELECT=5
104
104
# RUN ${CXX} --version
105
105
106
106
RUN 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:
5
5
environment :
6
6
- ALLOW_IP_RANGE="172.18.0.0/16"
7
7
8
- qgis-deps :
8
+ qgis-build-and-test :
9
+ build :
10
+ context : .
11
+ dockerfile : build-Dockerfile
9
12
tty : true
10
- image : qgis/qgis3-build-deps :${DOCKER_TAG}
13
+ image : qgis/qgis3-run :${DOCKER_TAG}
11
14
volumes :
12
15
- ${TRAVIS_BUILD_DIR}:/root/QGIS
13
16
- $HOME/.ccache:/root/.ccache # if changed, also change env var
14
17
links :
15
18
- postgres
16
19
environment :
20
+ - DOCKER_TAG=${DOCKER_TAG}
17
21
- CCACHE_DIR=/root/.ccache
18
22
- CTEST_BUILD_DIR=/root/QGIS
19
23
- TRAVIS_BRANCH=${TRAVIS_BRANCH}
You can’t perform that action at this time.
0 commit comments