Skip to content

Commit

Permalink
Add cucumber command
Browse files Browse the repository at this point in the history
  • Loading branch information
CSammy committed Apr 16, 2018
1 parent 061624e commit f4108ad
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion wrapper
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ print_usage() {
echo " including database"
echo " config Creates diaspora.yml and database.yml and configures for use"
echo " with PostgreSQL"
echo " cucumber Run all cucumber tests, or only ARGS if given"
echo " exec Execute ARGS in the project folder inside the running"
echo " diaspora* container, or, if none is running, use a new one"
echo " migrate Execute pending migrations (incl. database setup)"
echo " restart Fast restart using bin/eye"
echo " rspec Run all tests, or ARGS as filenames if given"
echo " rspec Run all rspec tests, or only ARGS if given"
echo " setup Alias for, in that order: build, config, bundle, migrate"
echo " start Start diaspora* incl. database"
echo " status Show currently running containers and related images"
Expand Down Expand Up @@ -82,6 +83,10 @@ dia_config() {
[ ! -f "$DIASPORA_CONFIG_DB" ] && cp "$DIASPORA_CONFIG_DB".example "$DIASPORA_CONFIG_DB"
}

dia_cucumber() {
docker-compose run --rm $option diaspora bin/cucumber "$@"
}

dia_exec() {
! dia_is_configured && exit_unconfigured
if docker-compose ps --services --filter status=running | grep -q '^diaspora$'; then
Expand Down Expand Up @@ -191,6 +196,9 @@ case $dia_command in
config)
dia_config
;;
cucumber)
dia_cucumber "$@"
;;
exec)
dia_exec "$@"
;;
Expand Down

0 comments on commit f4108ad

Please sign in to comment.