Skip to content
This repository has been archived by the owner on Sep 17, 2018. It is now read-only.

Commit

Permalink
Merge 79cdb2c into 5c85749
Browse files Browse the repository at this point in the history
  • Loading branch information
jcouball committed Jun 29, 2015
2 parents 5c85749 + 79cdb2c commit bd33464
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ addons:
code_climate:
repo_token: d814b23d478d0908ef37c1c0aa685fdb0c6d5f0b38d8db0c68e58fd86a1f0fea

before_deploy:
# publish features to https://www.relishapp.com/mysql-expectations/mysql-expectations/docs
- rake relish

deploy:
provider: rubygems
api_key:
Expand Down
17 changes: 10 additions & 7 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,20 @@ task :console do
end

RELISH_PROJECT = 'mysql-expectations/mysql-expectations'
RELISH_STAGING_PROJECT = 'mysql-expectations-staging/mysql-expectations'
RELISH_STAGING_PROJECT = 'mysql-expectations/mysql-expectations-staging'

require 'mysql_expectations/version'

desc 'Push cucumber features to http://relishapp.com'
task :relish, :version do |_t, args|
fail 'rake relish[VERSION]' unless args[:version]
if `relish versions #{RELISH_PROJECT}`.split.map(&:strip).include? args[:version]
puts "Version #{args[:version]} already exists"
task :relish do
version = MySQLExpectations::Version::VERSION
fail 'rake relish[VERSION]' unless version
if `relish versions #{RELISH_PROJECT}`.split.map(&:strip).include? version
puts "Version #{version} already exists"
else
sh "relish versions:add #{RELISH_PROJECT}:#{args[:version]}"
sh "relish versions:add #{RELISH_PROJECT}:#{version}"
end
sh "relish push #{RELISH_PROJECT}:#{args[:version]}"
sh "relish push #{RELISH_PROJECT}:#{version}"
end

desc 'Push to relish staging environment of http://relishapp.com'
Expand Down
2 changes: 1 addition & 1 deletion lib/mysql_expectations/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
module MySQLExpectations
# This module holds the gem version number used in the gemspec
module Version
VERSION = '1.0.0'
VERSION = '1.0.1'
end
end

0 comments on commit bd33464

Please sign in to comment.