language: php
php:
  - "5.5"
  - "5.4"
  - "5.3"
env:
  - DOKUWIKI=master
  - DOKUWIKI=stable
  - DOKUWIKI=old-stable
before_install:
  - "wget https://raw.github.com/splitbrain/dokuwiki-travis/master/travis.sh"
  - "wget https://raw.github.com/mark-rushakoff/OpenPhantomScripts/master/phantom-qunit.js"
  - "wget http://code.jquery.com/qunit/qunit-1.14.0.css"
  - "wget http://code.jquery.com/qunit/qunit-1.14.0.js"
install:
  - "sh travis.sh"
script:
  - "cd _test && phpunit --stderr --group plugin_siteexport"
  - "cd ../lib/plugins/siteexport && RET=0 && for FILE in $(find . -name \"*.test.html\"); do phantomjs phantom-qunit.js file://$(pwd)/$FILE && RET=$(($RET + $?)); done; exit $RET"
