run-selenium 617 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. #
  3. # Installs Chrome or Firefox if missing and sets default browser to
  4. # chrome stable.
  5. #
  6. echo -e "\nPreparing Selenium webdriver tests."
  7. BINDIR=./browsers/bin
  8. export BROWSER=chrome
  9. export BVER=stable
  10. BROWSERBIN=$BINDIR/$BROWSER-$BVER
  11. if [ ! -x $BROWSERBIN ]; then
  12. echo "Installing Chrome"
  13. ./node_modules/travis-multirunner/setup.sh
  14. fi
  15. export BROWSER=firefox
  16. export BVER=stable
  17. BROWSERBIN=$BINDIR/$BROWSER-$BVER
  18. if [ ! -x $BROWSERBIN ]; then
  19. echo "Installing Firefox"
  20. ./node_modules/travis-multirunner/setup.sh
  21. fi
  22. echo "Starting browser."
  23. PATH=$PATH:./node_modules/.bin
  24. node test/selenium/index.js