|
|
@ -41,9 +41,13 @@ before_install: |
|
|
|
#- sudo apt-get install google-chrome-stable |
|
|
|
#- sudo apt-get install google-chrome-stable |
|
|
|
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & |
|
|
|
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost & |
|
|
|
# Get Chrome driver |
|
|
|
# Get Chrome driver |
|
|
|
- wget https://chromedriver.storage.googleapis.com/2.33/chromedriver_linux64.zip && unzip chromedriver_linux64.zip |
|
|
|
- wget https://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip && unzip chromedriver_linux64.zip |
|
|
|
- sudo mv chromedriver /usr/bin |
|
|
|
- sudo mv chromedriver /usr/bin |
|
|
|
- sudo chmod +x /usr/bin/chromedriver |
|
|
|
- sudo chmod +x /usr/bin/chromedriver |
|
|
|
|
|
|
|
# Setup display for Selenium |
|
|
|
|
|
|
|
- sh -e /etc/init.d/xvfb start |
|
|
|
|
|
|
|
- export DISPLAY=:99.0 |
|
|
|
|
|
|
|
- sleep 3 |
|
|
|
# Get Selenium |
|
|
|
# Get Selenium |
|
|
|
- wget http://selenium-release.storage.googleapis.com/3.1/selenium-server-standalone-3.1.0.jar |
|
|
|
- wget http://selenium-release.storage.googleapis.com/3.1/selenium-server-standalone-3.1.0.jar |
|
|
|
# Check java |
|
|
|
# Check java |
|
|
@ -93,12 +97,6 @@ before_install: |
|
|
|
- sudo service apache2 restart |
|
|
|
- sudo service apache2 restart |
|
|
|
- curl $VHOST_URL |
|
|
|
- curl $VHOST_URL |
|
|
|
|
|
|
|
|
|
|
|
before_script: |
|
|
|
|
|
|
|
# Setup display for Selenium |
|
|
|
|
|
|
|
- export DISPLAY=:99.0 |
|
|
|
|
|
|
|
- sh -e /etc/init.d/xvfb start |
|
|
|
|
|
|
|
- sleep 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
script: |
|
|
|
script: |
|
|
|
- whereis google-chrome-stable |
|
|
|
- whereis google-chrome-stable |
|
|
|
- whereis chromedriver |
|
|
|
- whereis chromedriver |
|
|
|