From a456fcd6a1a3ba4ae5068f09c2487fc02a4fb8bd Mon Sep 17 00:00:00 2001 From: Kurt Pfeifle Date: Mon, 26 Feb 2018 22:14:44 +0100 Subject: [PATCH] Possible fix for #379 (#411) * Fix for #379; also report content of $FILES in Travis log --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ae71f86f..a00b143b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,9 +25,12 @@ script: - Xvfb :99 -screen 0 800x600x24 >/dev/null 2>&1 & # Need to set bit depth, otherwise get some black screenshots - # until xset -q; do echo "Waiting for X server to start..."; sleep 1; done # We are not immediately using it anyway - # Find out which files in data/ have been changed in the last commit + - #set -x # Debug #379 - FILES=$(git log -1 -p data/ | grep +++ | cut -d '/' -f 2- | sed -e 's|dev/null||g') + - echo "$FILES" ; if [ x"$FILES" == x ] ; then echo "Variable FILES is empty." ; fi - # Work on these files that have been changed in the last commit - - for FILE in $FILES ; do echo "$FILE" ; bash -e code/worker.sh $(readlink -f "$FILE") ; done + - # Check if $FILES is not empty + - if [ x"$FILES" != x ] ; then for FILE in $FILES ; do echo "$FILE" ; bash -e code/worker.sh $(readlink -f "$FILE") ; done ; fi after_script: - # xpra stop :99