bard 0.59.2 → 0.59.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bard/ci.rb +18 -16
- data/lib/bard/version.rb +1 -1
- data/lib/bard.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38956ca84edead7bc46197a53aff83f1684eae930e8fed10d230091b4ec3af50
|
4
|
+
data.tar.gz: '095c71e86c3eb768809b37702dc5e45639ca8697677dfbb3941d1a7cb6e28fbe'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3f6f485712f5a5cc6343fcadfd989041da32f303d87291af7b093f8d5a6238ec0e71ae117e6993a635222abcfe2e2b1b1261d948bd0a4fed1905cf6649369ca
|
7
|
+
data.tar.gz: 3002ddf4ce77835ef490f623090ed3ce249d90825f41f45428d49f0cabad1b51ecc5815d86ce84c857950dfdc641522ff7d0814c43d6a2bb2394f5de30ec780c
|
data/lib/bard/ci.rb
CHANGED
@@ -21,30 +21,32 @@ class Bard::CLI < Thor
|
|
21
21
|
extend Forwardable
|
22
22
|
delegate [:run, :exists?, :console, :last_response, :status] => :runner
|
23
23
|
|
24
|
+
def local?
|
25
|
+
@local
|
26
|
+
end
|
27
|
+
|
28
|
+
def github_actions?
|
29
|
+
File.exist?(".github/workflows/ci.yml")
|
30
|
+
end
|
31
|
+
|
32
|
+
def jenkins?
|
33
|
+
!local? && !github_actions?
|
34
|
+
end
|
35
|
+
|
24
36
|
private
|
25
37
|
|
26
38
|
def choose_runner_class
|
27
39
|
if local?
|
28
40
|
require_relative "./ci/local"
|
29
41
|
Local
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
Jenkins
|
37
|
-
end
|
42
|
+
elsif github_actions?
|
43
|
+
require_relative "./ci/github_actions"
|
44
|
+
GithubActions
|
45
|
+
elsif jenkins?
|
46
|
+
require_relative "./ci/jenkins"
|
47
|
+
Jenkins
|
38
48
|
end
|
39
49
|
end
|
40
|
-
|
41
|
-
def local?
|
42
|
-
@local
|
43
|
-
end
|
44
|
-
|
45
|
-
def github_actions?
|
46
|
-
File.exist?(".github/workflows/ci.yml")
|
47
|
-
end
|
48
50
|
end
|
49
51
|
end
|
50
52
|
|
data/lib/bard/version.rb
CHANGED
data/lib/bard.rb
CHANGED
@@ -111,7 +111,7 @@ class Bard::CLI < Thor
|
|
111
111
|
if success
|
112
112
|
puts
|
113
113
|
puts "Continuous integration: success!"
|
114
|
-
if
|
114
|
+
if ci.jenkins? && File.exist?("coverage")
|
115
115
|
puts "Downloading test coverage from CI..."
|
116
116
|
download_ci_test_coverage
|
117
117
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.59.
|
4
|
+
version: 0.59.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
180
180
|
- !ruby/object:Gem::Version
|
181
181
|
version: '0'
|
182
182
|
requirements: []
|
183
|
-
rubygems_version: 3.5.
|
183
|
+
rubygems_version: 3.5.6
|
184
184
|
signing_key:
|
185
185
|
specification_version: 4
|
186
186
|
summary: CLI to automate common development tasks.
|