Skip to content

Commit

Permalink
test/: add OS osx for test
Browse files Browse the repository at this point in the history
  • Loading branch information
jreybert committed Oct 6, 2015
1 parent 4a8d18e commit 4c3ccd3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,19 @@ language: vim

sudo: false

os:
- linux
- osx

env:
matrix:
- TEST_SUB_PATH=./
- TEST_SUB_PATH=books/templates/

matrix:
allow_failures:
- os: osx

before_script:
- git clone https://github.com/jreybert/djooks
- git clone https://github.com/junegunn/vader.vim
Expand Down
12 changes: 8 additions & 4 deletions test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@ if [[ $# -ne 3 ]]; then
exit 1
fi

export VIMAGIT_PATH=$(readlink -f $1)
export VADER_PATH=$(readlink -f $2)
export TEST_PATH=$(readlink -f $3)
export TEST_SUB_PATH=$(readlink -f $TEST_PATH/$TEST_SUB_PATH)
function prealpath() {
python -c "import os,sys; print(os.path.realpath(os.path.expanduser(sys.argv[1])))" "${1}"
}

export VIMAGIT_PATH=$(prealpath $1)
export VADER_PATH=$(prealpath $2)
export TEST_PATH=$(prealpath $3)
export TEST_SUB_PATH=$(prealpath $TEST_PATH/$TEST_SUB_PATH)

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

0 comments on commit 4c3ccd3

Please sign in to comment.