Skip to content

Commit

Permalink
Merge pull request #431 from jtigger/fix-bundler-patching
Browse files Browse the repository at this point in the history
Base patched Trackler gem off actual version tag.
  • Loading branch information
jtigger authored Apr 20, 2017
2 parents edbb7ab + f413146 commit d4522cd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions bin/journey-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,11 @@ make_local_trackler() {

local xjava=$( pwd )
pushd ${trackler}

# Get the version of Trackler x-api is currently using
local version=$( grep -m 1 'trackler' ${xapi_home}/Gemfile.lock | sed 's/.*(//' | sed 's/)//' )

git checkout v${version}
git submodule init -- common
git submodule update

Expand All @@ -152,10 +157,6 @@ make_local_trackler() {
cp ${xjava}/config.json tracks/java
cp -r ${xjava}/exercises tracks/java

# Set the version to that expected by x-api
version=$( grep -m 1 'trackler' ${xapi_home}/Gemfile.lock | sed 's/.*(//' | sed 's/)//' )
echo "module Trackler VERSION = \"${version}\" end" > lib/trackler/version.rb

gem install bundler
bundle install
gem build trackler.gemspec
Expand Down

0 comments on commit d4522cd

Please sign in to comment.