language: node_js node_js: - "5" services: - docker sudo: false addons: firefox: "41.0.1" before_install: # Install CouchDB Master - docker run -d -p 5984:5984 klaemo/couchdb:2.0-dev --with-haproxy --with-admin-party-please -n 1 - npm install add-cors-to-couchdb - "while [ '200' != $(curl -s -o /dev/null -w \"%{http_code}\" 127.0.0.1:5984) ]; do echo waiting for couch to load... ; sleep 1; done" - ./node_modules/.bin/add-cors-to-couchdb script: npm run $COMMAND before_script: - "export DISPLAY=:99.0" - "sh -e /etc/init.d/xvfb start" env: matrix: - COMMAND=test - CLIENT=selenium:firefox COMMAND=test - CLIENT=selenium:phantomjs COMMAND=test - COMMAND=report-coverage branches: only: - master