Skip to content

Commit 80764c6

Browse files
committed
ci(travis): use gcc v4.8 to compile npm native modules on Node v4 and v5
1 parent d9e78e4 commit 80764c6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ before_cache:
1818

1919
env:
2020
global:
21+
# Use newer verison of GCC to that is required to compile native npm modules for Node v4+ on Ubuntu Precise
22+
# more info: https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements
23+
- CXX=g++-4.8
2124
- KARMA_DART_BROWSERS=DartiumWithWebPlatform
2225
# 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
2326
- KARMA_JS_BROWSERS=ChromeNoSandbox
@@ -64,6 +67,11 @@ matrix:
6467

6568
addons:
6669
firefox: "38.0"
70+
apt:
71+
sources:
72+
- ubuntu-toolchain-r-test
73+
packages:
74+
- g++-4.8
6775

6876
before_install:
6977
- npm install -g npm@3.5.3

0 commit comments

Comments
 (0)