Skip to content

Commit

Permalink
Switch to use_branch technique so that we don't have to keep updating…
Browse files Browse the repository at this point in the history
… Gemfile every branch and release
  • Loading branch information
smeeks committed Nov 13, 2021
1 parent 38fc4be commit 3101b99
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ source "https://rubygems.org"

# To use debugger
# gem 'debugger'
gem 'transam_core', git: 'https://github.com/camsys/transam_core', branch: :qa
gem 'transam_reporting', git: 'https://github.com/camsys/transam_reporting', branch: :qa
gem 'transam_transit', git: 'https://github.com/camsys/transam_transit', branch: :qa
current_branch = `git rev-parse --abbrev-ref HEAD`.strip
current_branch = ENV['TRAVIS_BRANCH'] if current_branch == 'HEAD'
use_branch = ['master', 'qa', 'develop'].include?(current_branch) ? current_branch : 'develop'
puts "TransAM engines using branch: #{use_branch}"

gem 'transam_core', git: 'https://github.com/camsys/transam_core', branch: use_branch
gem 'transam_reporting', git: 'https://github.com/camsys/transam_reporting', branch: use_branch
gem 'transam_transit', git: 'https://github.com/camsys/transam_transit', branch: use_branch
gem 'mysql2', '~> 0.5.1' # lock gem for dummy app
gem "capybara", '2.6.2' # lock gem for old capybara behavior on hidden element xpath

Expand Down

0 comments on commit 3101b99

Please sign in to comment.