From 78faee8c7cb4e4b24256d42e8df8e48e1ffc0b52 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 May 2017 15:55:57 +0200 Subject: .travis.yml: choose compiler with environment variables .. and not update-alternatives, which requires "sudo". --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index a8435faf3..27a17c4eb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,10 +25,9 @@ before_install: install: # C++14 - sudo apt-get install -qq g++-5 - - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 90 - - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 90 script: + - export CC=gcc-5 CXX=g++-5 - ./autogen.sh - ./configure --enable-test - make -- cgit v1.2.3