ci: add gcc-8 to Travis-CI build matrix

Change-Id: Ibf4ea92af716c44c5a91e704c605b2b811f3122e
diff --git a/.travis.yml b/.travis.yml
index 319269b..c310d6b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -36,6 +36,12 @@
         apt:
           sources: ubuntu-toolchain-r-test
           packages: g++-7
+    - os: linux
+      env: COMPILER=g++-8
+      addons:
+        apt:
+          sources: ubuntu-toolchain-r-test
+          packages: g++-8
 
     # Linux/clang
     # https://apt.llvm.org/
@@ -101,10 +107,7 @@
       osx_image: xcode8.3
       env: OSX_VERSION=10.12
     - os: osx
-      osx_image: xcode9.2
-      env: OSX_VERSION=10.12
-    - os: osx
-      osx_image: xcode9.3beta
+      osx_image: xcode9.3
       env: OSX_VERSION=10.13
 
   allow_failures: