-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c5cbacb
commit d748974
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Set up bundler. | ||
setup-bundler: | ||
gem install bundler | ||
bundle config set path 'vendor/bundle' | ||
|
||
# Lint all the ruby code. | ||
lint: | ||
bundle exec rubocop | ||
|
||
# Fix linting issues in the ruby code. | ||
fix-lint: | ||
bundle exec rubocop -A | ||
|
||
# Get ruby deps. | ||
dep: | ||
bundle check || bundle install | ||
bundle clean --force | ||
|
||
# Update all ruby deps. | ||
update-all: | ||
bundle update | ||
|
||
# Run all features. | ||
features: clean-reports | ||
bundle exec cucumber --profile report --fail-fast $(feature) | ||
|
||
# Clean the reports. | ||
clean-reports: | ||
rm -rf reports/*.* | ||
|
||
# Update a gem. | ||
update-dep: | ||
bundle update $(gem) | ||
bundle clean --force |