diff --git a/.travis.yml b/.travis.yml index ae71f86f73..a00b143ba0 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