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

This commit is contained in:
Jose Diaz-Gonzalez
2017-08-26 05:38:22 -04:00
parent 067c55cf4a
commit cc6e8b631b
2 changed files with 10 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,4 +1,5 @@
tests/dokku
tests/fixtures
tests/bin/plugn
tests/bin/readlink
.vagrant

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