Skip to content

Commit

Permalink
fix: use gnu readlink to make tests pass on os x
Browse files Browse the repository at this point in the history
  • Loading branch information
josegonzalez committed Aug 26, 2017
1 parent ae04acb commit e91b31e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,4 +1,5 @@
tests/dokku
tests/fixtures
tests/bin/plugn
tests/bin/readlink
.vagrant
10 changes: 9 additions & 1 deletion Makefile
Expand Up @@ -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
Expand Down

0 comments on commit e91b31e

Please sign in to comment.