Skip to content

Commit

Permalink
Detect tmux and run shell completion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Nov 14, 2013
1 parent 1e0fe65 commit 755d5aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions cucumber.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
default: --format progress -t ~@completion
completion: --format pretty -t @completion
all: --format progress
15 changes: 14 additions & 1 deletion script/test
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,21 @@ check_warnings() {
fi
}

if tmux -V; then
if [ -n "$CI" ]; then
git --version
bash --version | head -1
zsh --version
echo
fi
profile="all"
else
echo "warning: skipping shell completion tests (install tmux to enable)" >&2
profile="default"
fi

run rake test
run cucumber features
run cucumber -p "$profile"

check_warnings

Expand Down

0 comments on commit 755d5aa

Please sign in to comment.