2017-03-22 26 views
0

我们已经将节点项目与IBM版本的Travis(https://travis.ibm.com/)同步,但现在拒绝使用以下错误消息进行构建,想法如何?节点构建器在IBM travis上停止工作

Starting with io.js 3 and Node.js 4, building native extensions requires C++11-compatible compiler, which seems unavailable on this VM. Please read https://docs.travis-ci.com/user/languages/javascript-with-nodejs#Node.js-v4-(or-io.js-v3)-compiler-requirements.

增加的要求时,如网址列出,我收到以下错误

Disallowing sources: ubuntu-toolchain-r-test

回答

0

下面的代码来解决这个问题:

language: node_js 

node_js: 
    - "5.4.1" 

env: 
    - CXX=g++-4.8 
addons: 
    apt: 
    sources: 
     - sourceline: 'ppa:ubuntu-toolchain-r/test' 
    packages: 
     - g++-4.8 
相关问题