From 80764c6f717f50abc39b53016d5ecd18f8198fd8 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Fri, 4 Mar 2016 09:30:45 -0800 Subject: [PATCH] ci(travis): use gcc v4.8 to compile npm native modules on Node v4 and v5 --- .travis.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.travis.yml b/.travis.yml index ee3b92a980..9fc40a6834 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,9 @@ before_cache: env: global: + # Use newer verison of GCC to that is required to compile native npm modules for Node v4+ on Ubuntu Precise + # more info: https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements + - CXX=g++-4.8 - KARMA_DART_BROWSERS=DartiumWithWebPlatform # No sandbox mode is needed for Chromium in Travis, it crashes otherwise: https://sites.google.com/a/chromium.org/chromedriver/help/chrome-doesn-t-start - KARMA_JS_BROWSERS=ChromeNoSandbox @@ -64,6 +67,11 @@ matrix: addons: firefox: "38.0" + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - g++-4.8 before_install: - npm install -g npm@3.5.3