Skip to content

Commit

Permalink
travis: all tests are done with a git repo path with spaces (ref #89)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreybert committed Oct 19, 2016
1 parent 3cea54a commit 78bde21
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ install:
fi

before_script:
- git clone https://github.com/jreybert/djooks
- git clone https://github.com/jreybert/djooks "djooks with spaces"
- git clone https://github.com/jreybert/vader.vim

script:
- ./test/run.sh . vader.vim djooks $VIM_VERSION
- ./test/run.sh . vader.vim "djooks with spaces" $VIM_VERSION

after_success:
- ./test/merge.sh
6 changes: 3 additions & 3 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ python -c "import os,sys; print(os.path.realpath(os.path.expanduser(sys.argv[1])

export VIMAGIT_PATH=$(prealpath $1)
export VADER_PATH=$(prealpath $2)
export TEST_PATH=$(prealpath $3)
export TEST_PATH=$(prealpath "$3")
export VIM_VERSION=$4

if [[ ! ( -d $VIMAGIT_PATH && -d $VADER_PATH && -d $TEST_PATH ) ]]; then
echo "can't access to one of them '$VIMAGIT_PATH' '$VADER_PATH' '$TEST_PATH'"
exit 1
fi

pushd $TEST_PATH
pushd "$TEST_PATH"
git config --local user.email 'tester@vimagit.org'
git config --local user.name 'vimagit tester'
export TEST_HEAD_SHA1='origin/vimagit_test-1.4.1'
Expand Down Expand Up @@ -62,7 +62,7 @@ for script in ${!test_scripts[@]}; do
for filename in "${filename_array[@]}"; do
echo ${_TEST_PATHS[@]}
for test_path in ${_TEST_PATHS[@]}; do
export TEST_SUB_PATH=$(prealpath $TEST_PATH/$test_path)
export TEST_SUB_PATH=$(prealpath "$TEST_PATH"/$test_path)
export VIMAGIT_TEST_FILENAME="$filename"

for i in $EOL_TEST; do
Expand Down

0 comments on commit 78bde21

Please sign in to comment.