From 5ecbcf680871fca66a8330a54a0700641923dfae Mon Sep 17 00:00:00 2001 From: Martin von Gagern Date: Fri, 6 Nov 2015 10:23:19 +0100 Subject: [PATCH] Check screenshots on Travis using Docker and Selenium Thanks to the docker service provided by Travis CI, we should be able to download and use the Selenium docker images in order to run our screenshotter and check whether all the screenshots match the images from the repository. --- .travis.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 78e1c014..51cfabef 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,13 @@ language: node_js node_js: -- "0.11" -- "0.10" + - stable +sudo: required +services: + - docker +before_script: + - docker pull selenium/standalone-firefox:2.46.0 + - docker pull selenium/standalone-chrome:2.46.0 +script: + - npm test + - dockers/Screenshotter/screenshotter.sh + - git diff --name-only --exit-code