bard 0.31.0 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 118cdc90f0fe871bca1291c6580df2b2509407a7
4
- data.tar.gz: c0ec7b3c7887e429efd27a287d12ca54e69ad9b8
3
+ metadata.gz: c5be732a14386e0628e9c150546de8927f940116
4
+ data.tar.gz: a88dd21178b16c74a1922d56deafe9cf0c264c4d
5
5
  SHA512:
6
- metadata.gz: c53feddb47ab67e81477721e8c9aa037d87d70d7cfd0b58577b33274abd7ec9792005e863bae19e5776f56e1881e8297839997c51ea2367865ad5197d1684db6
7
- data.tar.gz: 3a99fbcff021027796397131b97f0be1424b394f9575ab03216750415a94116d5cc80489657652bdd7c1ccdaf793f322c3c5a4d3e531abbf7ff1071fcc3b0d15
6
+ metadata.gz: b80a6f1ee3e3ab4980cb89b20b85f382be1a520684ca7ad57a6f0e7f6a19a53f94caec2fe04c939e91c3a70be8d109bdac3040ebf121dfbbbf66d8979e434a0b
7
+ data.tar.gz: f4496b57d802c589460420f89277487dc999b1018f1cf11d654872d2aff2e255ecca87e81000b4656b9d4493928bb1c16eeee1189a5a4d2859b6c00b05bc7e13
@@ -100,7 +100,12 @@ class Bard::CLI < Thor
100
100
 
101
101
  if success
102
102
  puts
103
- puts "Continuous integration: success! deploying to production"
103
+ puts "Continuous integration: success!"
104
+ if File.exist?("coverage")
105
+ puts "Downloading test coverage from CI..."
106
+ run_crucial "cap _2.5.10_ download_ci_test_coverage"
107
+ end
108
+ puts "Deploying..."
104
109
  else
105
110
  puts
106
111
  puts ci.last_response
@@ -81,4 +81,11 @@ Capistrano::Configuration.instance(:must_exist).load do
81
81
  uri = URI.parse("ssh://#{roles[ENV['ROLES'].to_sym].first.to_s}")
82
82
  exec "ssh -t #{"-p#{uri.port} " if uri.port}#{uri.user}@#{uri.host} 'cd #{application} && exec $SHELL'"
83
83
  end
84
+
85
+ desc "download latest test coverage information from CI"
86
+ task :download_ci_test_coverage do
87
+ uri = URI.parse("ssh://#{roles[:staging].first}")
88
+ portopt = "-e'ssh -p#{uri.port}'" if uri.port
89
+ system "rsync #{portopt} --delete -avz #{uri.user}@#{uri.host}:~jenkins/jobs/#{application}/workspace/coverage ./"
90
+ end
84
91
  end
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.31.0"
2
+ VERSION = "0.32.0"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.0
4
+ version: 0.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel