box: starefossen/iojs-imagemagick:latest
build:
  steps:
    - script:
        name: echo nodejs information
        code: |
          echo "node version $(node -v) running"
          echo "npm version $(npm -v) running"

    - script:
        name: echo imagemagick information
        code: |
            echo convert --version

    - npm-install

    - script:
        name: jshint
        code: |
            npm run hint

    - npm-test

  after-steps:
    - turistforeningen/slack-notifier:
        url: $SLACK_WEBHOOK_URL

deploy:
  steps:
    - turistforeningen/npm-publish
