From 26956db5ac969983a1f9e3b8f26c8c794c703e1f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 10 Jul 2019 22:03:46 +0200 Subject: [PATCH] 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. :^) --- .travis.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f8e8d674498..d4a21f86420 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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