Use gcc-4.8 to compile in Docker.

Other travis-CI will use the default gcc version of ubuntu trusty.
We must compile with the same compiler to ensure that we don't break ABI.
This commit is contained in:
Matthieu Gautier 2018-06-13 14:40:23 +02:00
parent 8b8d24d662
commit e441b847b5
1 changed files with 3 additions and 2 deletions

View File

@ -9,8 +9,8 @@ RUN \
apt install -q -y --no-install-recommends \
# Base build tools
build-essential \
# gcc-5 \
# g++-5 \
gcc-4.8 \
g++-4.8 \
automake \
libtool \
cmake \
@ -73,6 +73,7 @@ RUN \
mv ninja /home/travis/.local/bin ;\
rm ninja-linux.zip
ENV PATH="/home/travis/.local/bin:${PATH}"
ENV CC=gcc-4.8 CXX=g++-4.8 QMAKE_CC=gcc-4.8 QMAKE_CXX=g++-4.8
COPY . kiwix-build/
RUN sudo chown -R travis:travis /home/travis/kiwix-build