Files
blockly/tests/scripts/setup_osx_env.sh
Sam El-Husseini 09d2a167f9 Fix travis by running browser tests in headless mode (#3001)
* Fix travis by running browser tests in headless mode
2019-09-11 17:25:22 -07:00

10 lines
238 B
Bash
Executable File

#!/bin/bash
if [ "${TRAVIS_OS_NAME}" == "osx" ]
then
brew cask install google-chrome
sudo Xvfb :99 -ac -screen 0 1024x768x8 &
export CHROME_BIN="/Applications/Google Chrome.app"
npm run test:prepare > /dev/null &
fi