dist: trusty
language: node_js
node_js:
  - node
script:
  - npm run lint
  - npm test
  - npm run report-coverage
  - npm run build
addons:
  chrome: stable
deploy:
  - provider: pages
    skip_cleanup: true
    github_token: $GITHUB_TOKEN
    local_dir: "${TRAVIS_BUILD_DIR}/dist/docs"
    repo: Semantic-UI-Vue/semantic-ui-vue.github.io
    target_branch: master
    on:
      branch: master
  - provider: npm
    skip_cleanup: true
    api_key: $NPM_TOKEN
    email: "mariolamacchia@gmail.com"
    on:
      tags: true
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/77811bc03dbeeebf8544
    on_success: always
    on_failure: always
    on_start: never
  email:
    recipients:
      - mariolamacchia@gmail.com
    on_success: never
    on_failure: always

dist: trusty
language: node_js
node_js:
  - node
script:
  - npm run lint
  - npm test
  - npm run report-coverage
  - npm run build
addons:
  chrome: stable
deploy:
  - provider: pages
    skip_cleanup: true
    github_token: $GITHUB_TOKEN
    local_dir: "${TRAVIS_BUILD_DIR}/dist/docs"
    repo: Semantic-UI-Vue/semantic-ui-vue.github.io
    target_branch: master
    on:
      branch: master
      tags: true
  - provider: npm
    skip_cleanup: true
    api_key: $NPM_TOKEN
    email: "mariolamacchia@gmail.com"
    on:
      tags: true
notifications:
  webhooks:
    urls:
      - https://webhooks.gitter.im/e/77811bc03dbeeebf8544
    on_success: always
    on_failure: always
    on_start: never
  email:
    recipients:
      - mariolamacchia@gmail.com
    on_success: never
    on_failure: always

Build pages on tags and push to master
Build pages on tags and push to master
