mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-18 00:25:29 +01:00
ac6ae09a05
* Added --no-sandbox argument to chrome on travis * Added xvfb screen display settings * Updated chromedriver version
22 lines
778 B
Bash
22 lines
778 B
Bash
# Start Xvfb screen
|
|
export DISPLAY=:99.0
|
|
sh -e /etc/init.d/xvfb start
|
|
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
|
|
|
|
# Install chromedriver
|
|
wget -N https://chromedriver.storage.googleapis.com/2.45/chromedriver_linux64.zip -P ~/
|
|
unzip ~/chromedriver_linux64.zip -d ~/
|
|
rm ~/chromedriver_linux64.zip
|
|
sudo chmod -R u=rwx,g=rwx /usr/bin/google-chrome-stable
|
|
sudo chmod -R u=rwx,g=rwx /usr/bin/X11/google-chrome-stable
|
|
|
|
sudo mv -f ~/chromedriver /usr/local/share/
|
|
sudo chmod u=rwx,g=rwx /usr/local/share/chromedriver
|
|
|
|
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
|
|
|
|
whereis google-chrome-stable
|
|
whereis chromedriver
|
|
|
|
mysql -e 'CREATE DATABASE Plan;'
|