0

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

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

我有bitbucket-pipelines.yml它看起来像这样:

图片:节点:5.11.0

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

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

4

1 回答 1

2

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

要使用版本 7.4.0,请添加

image: node:7.4.0

在你的bitbucket-pipelines.yml文件中

于 2017-01-25T13:32:07.867 回答