language: node_js
node_js:
  - "0.11"
  - "0.10"
  - "0.8"
matrix:
  allow_failures:
    - node_js: "0.11"
  # Add a build with screenshot uploads for 0.10
  include:
    - node_js: "0.10"
      env: UPLOAD_RESULTS="TRUE"

script:
  # Run integration tests
  - npm run test-integration

  # Run perceptual diff tests (upon failure, upload to imgur)
  - 'npm run test-perceptual || ((test "$UPLOAD_RESULTS" = "TRUE" && ./test/perceptual-tests/upload-screenshots.sh) && exit 1)'

notifications:
  email:
    recipients:
      - todd@twolfson.com
    on_success: change
    on_failure: change

language: node_js
node_js:
  - "0.11"
  - "0.10"
  - "0.8"
matrix:
  allow_failures:
    - node_js: "0.11"
  # # Add a build with screenshot uploads for 0.10
  # include:
  #   - node_js: "0.10"
  #     env: UPLOAD_RESULTS="TRUE"

script:
  # Run integration tests
  - npm run test-integration

  # Run perceptual diff tests (upon failure, upload to imgur)
  - 'npm run test-perceptual || ((test "$UPLOAD_RESULTS" = "TRUE" && ./test/perceptual-tests/upload-screenshots.sh) && exit 1)'

notifications:
  email:
    recipients:
      - todd@twolfson.com
    on_success: change
    on_failure: change

Revert "Enabling screenshots for debugging Travis CI issues"
Revert "Enabling screenshots for debugging Travis CI issues"

This reverts commit 85f49d21436bc845295494c2070fd5ff239a0d2f.
