From c694394b6d3210c13d77f9c86061b1a1c8b11885 Mon Sep 17 00:00:00 2001 From: Ian Scott Date: Fri, 13 May 2016 18:25:31 -0700 Subject: [PATCH] Test xauth in Travis tests --- .travis.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 58649b7..5828bfb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,14 @@ before_script: - - "export DISPLAY=:99.0" - - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -nolisten $NOLISTEN" + - "export XAUTHORITY=/tmp/.Xauthority-Xvfb" + - "xauth add :99 . $(mcookie)" + - "xauth add 127.0.0.2:99 . $(mcookie)" + - "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -nolisten $NOLISTEN -auth $XAUTHORITY" + - "sleep 1" env: - - NOLISTEN=tcp - - NOLISTEN=unix + - NOLISTEN=tcp DISPLAY=:99.0 + - NOLISTEN=unix DISPLAY=:99.0 + - NOLISTEN=unix DISPLAY=127.0.0.2:99.0 language: node_js node_js: