travis: use matching C++ for GCC version
authorDoug Goldstein <cardoe@cardoe.com>
Fri, 4 Mar 2016 20:09:47 +0000 (14:09 -0600)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 7 Mar 2016 15:30:05 +0000 (10:30 -0500)
commit9bcc3998bdd0f430a79485bbcc0c85ed6deee686
tree3504e7507dd3733cc851de2e2ad814b138aee9a1
parent4442d436e0087706094acceccfe6263e98d56ab1
travis: use matching C++ for GCC version

When we use GCC 5.x, we need to install the C++ compiler and the C
compiler together because QEMU tests for feature flags against the C
compiler and assumes the C++ compiler has them. We also have to
ensure that GCC C++ is used. Have to do the modification of the CXX variable
in two steps to ensure we support older versions of bash in use by the
test machines. While we're at it simply how we select our compiler.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
.travis.yml