Travis: Try to install a modern C++ compiler for host compilations.

It seems like the newest Ubuntu supported by Travis is 16.04. The bundled
gcc is unable to compile the trendy and modern Serenity code, so let's try
to install a newer GCC on the CI bot. :^)
This commit is contained in:
Andreas Kling 2019-07-10 22:03:46 +02:00
parent 9c6fe21b49
commit 26956db5ac
Notes: sideshowbarker 2024-07-19 13:20:31 +09:00

View file

@ -14,7 +14,11 @@ notifications:
irc: "chat.freenode.net#serenityos"
before_install:
- sudo apt-get update
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
- sudo apt-get install g++-8 libstdc++-8-dev
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90
- sudo apt-get install -y libmpfr-dev libmpc-dev libgmp-dev
- sudo apt-get install -y e2fsprogs qemu-system-i386 qemu-utils