Skip to content

Commit

Permalink
Merge pull request #61 from dokku/josegonzalez-patch-1
Browse files Browse the repository at this point in the history
tests: use bats-core version of bats
  • Loading branch information
josegonzalez authored May 18, 2024
2 parents 11390a2 + 8cced29 commit 8cd8237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ lint: shellcheck bats
unit-tests: /usr/local/bin/dokku-update
@echo running unit tests...
@mkdir -p test-results/bats
@$(QUIET) TERM=linux bats --formatter bats-format-junit -e -T -o test-results/bats tests/unit
@$(QUIET) TERM=linux bats --report-formatter junit --timing -o test-results/bats tests/unit

pre-build:
git config --global --add safe.directory $(shell pwd)
Expand All @@ -171,7 +171,7 @@ ifneq ($(shell bats --version >/dev/null 2>&1 ; echo $$?),0)
brew install bats-core
endif
else
git clone https://github.com/josegonzalez/bats-core.git /tmp/bats
git clone https://github.com/bats-core/bats-core.git /tmp/bats
cd /tmp/bats && sudo ./install.sh /usr/local
rm -rf /tmp/bats
endif

0 comments on commit 8cd8237

Please sign in to comment.