language: node_js
node_js:
- '0.10'

before_install:
- npm install -g npm

install:
- npm install
- cd ./example && npm install && cd -

script:
- node ./node_modules/mocha/bin/mocha
- cd example && node ./build.js && cd -

deploy:
  provider: npm
  email: aymeric@beaumet.me
  api_key:
    secure: PAVLA1+st7EoijWC6s1w53BUsaG+34ExU2CqTFScIpvqC2JaP25MGsm2ASsq0bdP8MeehPP4SJoMTg/xzbU8PDitAb2TkE4pOllHEtEsCcXcNwWcihPXcjbuKOOPd0Xhy4JFRKve4nCQoaIjbsew77I6FFwIhc/bn2CbWvYDRwc=
  on:
    repo: aymericbeaumet/metalsmith-redirect
    branch: master
    tags: true

language: node_js
node_js:
- '0.10'

before_install:
- npm install -g npm

install:
- npm install
- cd ./example && npm install && cd -

script:
- node ./node_modules/mocha/bin/mocha
- cd example && node ./build.js && cd -

deploy:
  provider: npm
  email: aymeric@beaumet.me
  api_key:
    secure: PAVLA1+st7EoijWC6s1w53BUsaG+34ExU2CqTFScIpvqC2JaP25MGsm2ASsq0bdP8MeehPP4SJoMTg/xzbU8PDitAb2TkE4pOllHEtEsCcXcNwWcihPXcjbuKOOPd0Xhy4JFRKve4nCQoaIjbsew77I6FFwIhc/bn2CbWvYDRwc=
  on:
    repo: aymericbeaumet/metalsmith-redirect
    all_branches: true
    tags: true

Fix NPM publish via Travis
Fix NPM publish via Travis
