Bitbucket管道最新节点js(至少7.4.0)

时间:2017-01-25 13:28:56

标签: node.js bitbucket bitbucket-pipelines

我有一个应用程序测试Bitbucket,我想每次sombebody推送一些东西到git时运行测试。我发现新功能Bitbucket Pipelines是最好的。

我需要什么? 我无法在任何地方找到我可以使用的最新版本的Node js。 我使用的是ES6(ES2015)语法,但它失败了,因为它不知道let, const, class, ...个关键字。

我有bitbucket-pipelines.yml,如下所示:

image:node:5.11.0

pipelines:
  default:
    - step:
         script: # Modify the commands below to build your repository.
           - npm install
           - npm test

但它失败了。我可以使用的最新版本的节点j是什么?

1 个答案:

答案 0 :(得分:2)

您需要添加有效的nodejs图像。

要使用7.4.0版,请添加

image: node:7.4.0

在您的bitbucket-pipelines.yml文件中