节点构建器停止在IBM travis上工作

时间:2017-03-22 10:13:36

标签: travis-ci

我们的节点项目已与CI版本的Travis(https://travis.ibm.com/)同步,但它现在拒绝使用以下错误消息进行构建,想法?

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

1 个答案:

答案 0 :(得分:1)

以下代码解决了这个问题:

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