Skip to content
Snippets Groups Projects
Commit 78bde219 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

travis: all tests are done with a git repo path with spaces (ref #89)

parent 3cea54ac
Branches kegan/fix-3pid-signup
Tags
No related merge requests found
...@@ -61,11 +61,11 @@ install: ...@@ -61,11 +61,11 @@ install:
fi fi
before_script: 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 - git clone https://github.com/jreybert/vader.vim
script: script:
- ./test/run.sh . vader.vim djooks $VIM_VERSION - ./test/run.sh . vader.vim "djooks with spaces" $VIM_VERSION
after_success: after_success:
- ./test/merge.sh - ./test/merge.sh
...@@ -15,7 +15,7 @@ python -c "import os,sys; print(os.path.realpath(os.path.expanduser(sys.argv[1]) ...@@ -15,7 +15,7 @@ python -c "import os,sys; print(os.path.realpath(os.path.expanduser(sys.argv[1])
export VIMAGIT_PATH=$(prealpath $1) export VIMAGIT_PATH=$(prealpath $1)
export VADER_PATH=$(prealpath $2) export VADER_PATH=$(prealpath $2)
export TEST_PATH=$(prealpath $3) export TEST_PATH=$(prealpath "$3")
export VIM_VERSION=$4 export VIM_VERSION=$4
if [[ ! ( -d $VIMAGIT_PATH && -d $VADER_PATH && -d $TEST_PATH ) ]]; then if [[ ! ( -d $VIMAGIT_PATH && -d $VADER_PATH && -d $TEST_PATH ) ]]; then
...@@ -23,7 +23,7 @@ if [[ ! ( -d $VIMAGIT_PATH && -d $VADER_PATH && -d $TEST_PATH ) ]]; then ...@@ -23,7 +23,7 @@ if [[ ! ( -d $VIMAGIT_PATH && -d $VADER_PATH && -d $TEST_PATH ) ]]; then
exit 1 exit 1
fi fi
pushd $TEST_PATH pushd "$TEST_PATH"
git config --local user.email 'tester@vimagit.org' git config --local user.email 'tester@vimagit.org'
git config --local user.name 'vimagit tester' git config --local user.name 'vimagit tester'
export TEST_HEAD_SHA1='origin/vimagit_test-1.4.1' export TEST_HEAD_SHA1='origin/vimagit_test-1.4.1'
...@@ -62,7 +62,7 @@ for script in ${!test_scripts[@]}; do ...@@ -62,7 +62,7 @@ for script in ${!test_scripts[@]}; do
for filename in "${filename_array[@]}"; do for filename in "${filename_array[@]}"; do
echo ${_TEST_PATHS[@]} echo ${_TEST_PATHS[@]}
for test_path in ${_TEST_PATHS[@]}; do 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" export VIMAGIT_TEST_FILENAME="$filename"
for i in $EOL_TEST; do for i in $EOL_TEST; do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment