sudo: required

services:
  - docker

language: node_js

node_js:
  - "6.0"

script:
  - "npm run lint"
  - "npm run test:cover"

after_success:
  - bash <(curl -s https://codecov.io/bash)
  - docker build --build-arg version=$(node -p -e "require('./package.json').version") -t oshalygin/olegjs:$(node -p -e "require('./package.json').version") .
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" http://index.docker.io;
    docker push oshalygin/olegjs;
    fi

sudo: required

services:
  - docker

language: node_js

node_js:
  - "6.0"

script:
  - "npm run lint"
  - "npm run test:cover"

after_success:
  - bash <(curl -s https://codecov.io/bash)
  - docker build --build-arg version=$(node -p -e "require('./package.json').version") -t oshalygin/olegjs:$(node -p -e "require('./package.json').version") .
  - if [ "$TRAVIS_BRANCH" == "master" ]; then
    docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" http://index.docker.io;
    docker push oshalygin/olegjs:latest;
    fi

Update docker image tag pushed
Update docker image tag pushed
