language: node_js
node_js:
  - "stable"
branches:
  - /.*/
install:
  - npm install
script:
  - npm test

language: node_js
node_js:
  - "stable"
services:
  - docker
branches:
  - /.*/
before_install:
  - docker build -t lgallinaro/rr3js .
  - docker run lgallinaro/rr3js /bin/bash -c "npm test"
install:
  - npm install
script:
  - npm test
after_success:
  - if ["$TRAVIS_BRANCH" == "master" ]; then
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";
    docker push lgallinaro/rr3js;
    fi

Add docker push settings/build step to pipeline
Add docker push settings/build step to pipeline
