Skip to content

Commit

Permalink
Fix for Travis CI issue: travis-ci/travis-cookbooks#876
Browse files Browse the repository at this point in the history
  • Loading branch information
nibb13 committed Sep 30, 2017
1 parent a084e8a commit 772b55a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
14 changes: 3 additions & 11 deletions ci/tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,10 @@ assert "./pushall.sh -c self -t \"Title\" -T \"Text\" -i \"http://test.com/icon.

assert_end "Instant calls"

SCRIPT_NAME=$(basename "$0")
LOCKDIR_QUEUE="/var/lock/${SCRIPT_NAME}_queue"
# Travis CI issue: https://github.com/travis-ci/travis-cookbooks/issues/876

#mkdir $LOCKDIR_QUEUE

#echo "mkdir status: $?"

ls -la /var
ls -la /run
la -la /run/lock

exit 0;
mkdir -p ./ci/var/lock/
export LOCKDIR_PREFIX="./ci"

# Queue add
assert_raises "./pushall.sh -c self -t \"Title\" -T \"Text\" -I \"pushall_id\" -K \"pushall_key\" queue 2>&1" 0
Expand Down
4 changes: 2 additions & 2 deletions pushall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ _init () {
CONF_SCRIPT_DIR=".pushall.sh";
SCRIPT_DIR=$(dirname "$0")
SCRIPT_NAME=$(basename "$0")
LOCKDIR="/var/lock/${SCRIPT_NAME}"
LOCKDIR="$LOCKDIR_PREFIX/var/lock/${SCRIPT_NAME}"
PIDFILE="${LOCKDIR}/pid"
LOCKDIR_QUEUE="/var/lock/${SCRIPT_NAME}_queue"
LOCKDIR_QUEUE="$LOCKDIR_PREFIX/var/lock/${SCRIPT_NAME}_queue"
PIDFILE_QUEUE="${LOCKDIR_QUEUE}/pid"

if [ ! "$XDG_CONFIG_HOME" ]; then
Expand Down

0 comments on commit 772b55a

Please sign in to comment.