simplify test structure and add bin stubs
This commit is contained in:
2
Makefile
2
Makefile
@@ -32,7 +32,7 @@ lint:
|
|||||||
|
|
||||||
unit-tests:
|
unit-tests:
|
||||||
@echo running unit tests...
|
@echo running unit tests...
|
||||||
@$(QUIET) bats tests/unit
|
@$(QUIET) bats tests
|
||||||
|
|
||||||
setup:
|
setup:
|
||||||
bash tests/setup.sh
|
bash tests/setup.sh
|
||||||
|
|||||||
3
tests/bin/id
Executable file
3
tests/bin/id
Executable file
@@ -0,0 +1,3 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
echo "dokku"
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/unit/test_helper.bash"
|
source "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/test_helper.bash"
|
||||||
|
|
||||||
if [[ ! -d $DOKKU_ROOT ]]; then
|
if [[ ! -d $DOKKU_ROOT ]]; then
|
||||||
git clone https://github.com/progrium/dokku.git $DOKKU_ROOT > /dev/null
|
git clone https://github.com/progrium/dokku.git $DOKKU_ROOT > /dev/null
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
export DOKKU_QUIET_OUTPUT=1
|
export DOKKU_QUIET_OUTPUT=1
|
||||||
export DOKKU_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku"
|
export DOKKU_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku"
|
||||||
export DOKKU_VERSION=${DOKKU_VERSION:-"master"}
|
export DOKKU_VERSION=${DOKKU_VERSION:-"master"}
|
||||||
export PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku:$PATH"
|
export PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/bin:$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/dokku:$PATH"
|
||||||
export PLUGIN_PATH="$DOKKU_ROOT/plugins"
|
export PLUGIN_PATH="$DOKKU_ROOT/plugins"
|
||||||
export SERVICE=redis
|
export SERVICE=redis
|
||||||
|
|
||||||
Reference in New Issue
Block a user