language: php
dist: bionic
php:
  - 7.0
before_install:
  - sudo apt-get -y update
  - sudo apt-get install -y unzip xvfb libxi6 libgconf-2-4
  - sudo apt-get install default-jdk


language: php
dist: xenial
php:
  - 7.0
before_install:
  - sudo apt-get -y update
  - sudo apt-get install -y unzip xvfb libxi6 libgconf-2-4
  - sudo apt-get install default-jdk
  - sudo curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
  - sudo echo "deb [arch=amd64]  http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
  - sudo apt-get -y install google-chrome-stable
  - wget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zip
  - unzip chromedriver_linux64.zip
  - sudo mv chromedriver /usr/bin/chromedriver
  - sudo chown root:root /usr/bin/chromedriver
  - sudo chmod +x /usr/bin/chromedriver
  - wget https://selenium-release.storage.googleapis.com/3.13/selenium-server-standalone-3.13.0.jar
  - unzip testng-6.8.7.jar.zip
  - xvfb-run java -Dwebdriver.chrome.driver=/usr/bin/chromedriver -jar selenium-server-standalone.jar
  - chromedriver --url-base=/wd/hub

Use Xenial for older PHP support
Use Xenial for older PHP support
