Skip to content

Commit

Permalink
feat(ruby): add makefile (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfalkowski authored Jan 13, 2023
1 parent c5cbacb commit d748974
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions build/make/ruby.mak
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

0 comments on commit d748974

Please sign in to comment.