image: node:carbon # latest node@8 LTS

pipelines:
  branches:
    master:
      - parallel:
        - step:
            name: Boron (Nodejs 6 LTS)
            image: node:boron
            caches:
              - node
            script:
              - scripts/test.sh
        - step:
            name: Carbon (Nodejs 8 LTS)
            image: node:carbon
            caches:
              - node
            script:
              - scripts/test.sh
        - step:
            name: Nodejs 10
            image: node:10
            caches:
              - node
            script:
              - scripts/test.sh
      - step:
          name: Tag
          script:
            - npm run wd
            - scripts/tag.sh
    feature/*:
      - parallel:
        - step:
            name: Boron (Nodejs 6 LTS)
            image: node:boron
            caches:
              - node
            script:
              - scripts/test.sh
        - step:
            name: Carbon (Nodejs 8 LTS)
            image: node:carbon
            caches:
              - node
            script:
              - scripts/test.sh
        - step:
            name: Nodejs 10
            image: node:10
            caches:
              - node
            script:
              - scripts/test.sh
      - step:
          name: Tag
          image: node:10
          caches:
            - node
          script:
            - npm install
            - npm run wd
            - scripts/tag.sh
  tags:
    version/**:
      - step:
          caches:
            - node
          script:
            - scripts/test.sh
            - scripts/tag.sh
#           - scripts/authenticateWithRegistry.sh
#           - scripts/publishOnTag.sh

image: node:carbon # latest node@8 LTS

pipelines:
  branches:
    master:
      - parallel:
        - step:
            name: Boron (Nodejs 6 LTS)
            image: node:boron
            caches:
              - node
            script:
              - scripts/test.sh
        - step:
            name: Carbon (Nodejs 8 LTS)
            image: node:carbon
            caches:
              - node
            script:
              - scripts/test.sh
        - step:
            name: Nodejs 10
            image: node:10
            caches:
              - node
            script:
              - scripts/test.sh
      - step:
          name: Tag
          image: node:10
          caches:
            - node
          script:
            - npm install
            - npm run wd
            - scripts/tag.sh
    feature/*:
      - parallel:
        - step:
            name: Boron (Nodejs 6 LTS)
            image: node:boron
            caches:
              - node
            script:
              - scripts/test.sh
        - step:
            name: Carbon (Nodejs 8 LTS)
            image: node:carbon
            caches:
              - node
            script:
              - scripts/test.sh
        - step:
            name: Nodejs 10
            image: node:10
            caches:
              - node
            script:
              - scripts/test.sh
      - step:
          name: Tag
          image: node:10
          caches:
            - node
          script:
            - npm install
            - npm run wd
            - scripts/tag.sh
  tags:
    version/**:
      - step:
          caches:
            - node
          script:
            - scripts/test.sh
            - scripts/tag.sh
#           - scripts/authenticateWithRegistry.sh
#           - scripts/publishOnTag.sh

Add wd tests to bitbucket
Add wd tests to bitbucket
