optimis-workflow-scripts 0.0.2 → 0.0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,8 +30,14 @@ module OptimisWorkflow
30
30
  system "git rebase #{parent_branch}"
31
31
  end
32
32
 
33
+ def run_tests
34
+ system "rake build"
35
+ fail "\n\nWhoops! You have failing tests! All tests must be passing before finishing the feature.\n\n" if $?.exitstatus == 1
36
+ end
37
+
33
38
  def local_stuff
34
39
  update_parent_branch
40
+ run_tests
35
41
  system "git checkout #{parent_branch}"
36
42
  system "git merge --squash #{feature_branch}"
37
43
  system "git commit -m '#{commit_msg} #{commit_msg_suffix}'"
@@ -28,7 +28,7 @@ module OptimisWorkflow
28
28
 
29
29
  def do_deploy
30
30
  system "git checkout #{feature_branch}"
31
- system "git push -f origin staging:#{feature_branch}"
31
+ system "git push -f origin #{feature_branch}:staging"
32
32
  end
33
33
 
34
34
  def update_master
metadata CHANGED
@@ -5,8 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ - 1
10
+ version: 0.0.3.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Alex Sharp
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-14 00:00:00 -07:00
18
+ date: 2010-04-21 00:00:00 -07:00
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
@@ -25,6 +26,7 @@ executables:
25
26
  - finish-feature
26
27
  - start-feature
27
28
  - start-hotfix
29
+ - finish-hotfix
28
30
  extensions: []
29
31
 
30
32
  extra_rdoc_files: