2017-03-22 25 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 
相關問題