fix: use gnu readlink to make tests pass on os x

This commit is contained in:
Jose Diaz-Gonzalez
2017-08-26 05:38:19 -04:00
parent 91edffd159
commit 946fc8046f
2 changed files with 10 additions and 1 deletions

View File

@@ -20,7 +20,15 @@ else
endif
endif
ci-dependencies: shellcheck bats
readlink:
ifeq ($(shell uname),Darwin)
ifeq ($(shell greadlink > /dev/null 2>&1 ; echo $$?),127)
brew install coreutils
endif
ln -nfs `which greadlink` tests/bin/readlink
endif
ci-dependencies: shellcheck bats readlink
lint:
# these are disabled due to their expansive existence in the codebase. we should clean it up though