0

I have an application with tests on Bitbucket and I want to run the tests everytime sombebody pushes something to the git. I've found out that new feature Bitbucket Pipelines is for that the best.

What I need? I can't find anywhere the lastest version of Node js I can use for that. I am using ES6 (ES2015) syntax and it fails because it doesn't know the let, const, class, ... keywords.

I have bitbucket-pipelines.yml which looks like this:

image: node:5.11.0

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

but it fails. What is the lastest version of node js I can use?

durisvk
  • 767
  • 1
  • 10
  • 23

1 Answers1

2

You need to add a valid nodejs image.

To use version 7.4.0, add

image: node:7.4.0

in your bitbucket-pipelines.yml file

ThomasThiebaud
  • 9,015
  • 4
  • 43
  • 66