sudo: required

language: java

jdk: oraclejdk8

dist: trusty 

branches: master

cache:
  directories:
  - $HOME/.m2
  - $HOME/chrome-archive

before_install:  
 - sudo apt-get install libxss1 libappindicator1 libindicator7
 - mkdir -p chrome-archive
 - wget -qnc https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O chrome-archive/google-chrome-stable_current_amd64.deb
 - sudo dpkg -i chrome-archive/google-chrome*.deb # Might show "errors", fixed by next line
 - sudo apt-get install -f

before_script:
 - mvn -q clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V

script:
- google-chrome --version
- google-chrome --headless --no-default-browser-check --no-first-run --disable-translate --remote-debugging-port=9222 --disable-gpu &
- mvn clean test

sudo: required

language: java

jdk: oraclejdk8

dist: trusty 

branches: master

cache:
  directories:
  - $HOME/.m2

before_install:  
 - sudo apt-get install libxss1 libappindicator1 libindicator7
 - mkdir -p chrome-archive
 - wget -qnc https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O chrome-archive/google-chrome-stable_current_amd64.deb
 - sudo dpkg -i chrome-archive/google-chrome*.deb # Might show "errors", fixed by next line
 - sudo apt-get install -f

before_script:
 - mvn -q clean install -DskipTests=true -Dmaven.javadoc.skip=true -B -V

script:
- google-chrome --version
- google-chrome --headless --no-default-browser-check --no-first-run --disable-translate --remote-debugging-port=9222 --disable-gpu &
- mvn clean test

Disable cache directory for Chrome
Disable cache directory for Chrome
