bake-test-external 0.5.0 → 0.5.1

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
  SHA256:
3
- metadata.gz: a468b46f1192614e834259be98b4938d9ee453233a4e5f30e80b54690e0a0605
4
- data.tar.gz: 193a7447f7e4542a26607c04513f0de72a2897d61a15424de4a6c162e8c12c33
3
+ metadata.gz: 424ec13c662cf8c186c1b59b9926443519e39a1cc24029eb0d54f56e12cc838f
4
+ data.tar.gz: 7c41b01f015434a83ae3143b2888d3db67f4baf2ae5928b59bd8d1ce5ceff4fe
5
5
  SHA512:
6
- metadata.gz: 5f3c50ff877fcfaae28beecedabee21fbec98d4a695353b5904c568d044497fb2196a7b33e8342459586a7ab93a4ac69037d8199c172813d63e088f19d2eeddc
7
- data.tar.gz: 9183e958d2958c800cc6fa97bb73b78d0b00ecbb01125723ac1762954de467f6eaf086ce2f4de4faad90de250bfeeb8a408461a999babd5147c2fa6d11bd3e9d
6
+ metadata.gz: '09ab7f684dd2a651b2781ed03f24eef9e61df80afbc50f34c637a4e266b3a0cc473faf7efa74672326922db184af206a4e881793fd6b1b133dd138962bb9c442'
7
+ data.tar.gz: 452dfd1a635eec9c793a81255c0c6d1dc27df5b19f3895e36d5e904a535de1a67632bc35f24698f7bfc219657a3a6b68c8f7f285db2588c94c10bac69c482add
checksums.yaml.gz.sig CHANGED
@@ -1,4 +1,4 @@
1
- 6G�����
2
- ��J����h��'1�Rn_Xg�7�Rӫu
3
- �#����q����N�Ϡ�Ȯ`*�F����gFQ
4
- �^��ms���^D��A(s,Zfh���W]k�{�æU<~��J{qDc�3[?{�������^��cU�t�F�
1
+ ]���E1���zsb� e��~�� ,� �Q�K|�ZDq|r���8������VE�A�j������e^]��n3�F�� �\�jº?>X
2
+ ���U����J
3
+ [~��~��C���Ii����M�yT�I�x�Ig�7wŝ�Ni�8[�y}%�FI�4m�\�1O�Kܤ(`�Sv3�����}���AtsZ_���0"�C��B2��W��J�I �HM���-��=�Y��[":
4
+ �ށ��[n��t������?�oPw'qnM��c^5(���ށ�'(��̚��F.� c��Q 4�ߗ���qY���%�D��� Q�#�����{t
@@ -16,6 +16,10 @@ module Bake
16
16
  @root = Pathname.new(root || Dir.pwd)
17
17
  end
18
18
 
19
+ private def system!(*command, **options)
20
+ system(*command, **options, exception: true)
21
+ end
22
+
19
23
  def find_gemspec(pattern = "*.gemspec")
20
24
  paths = @root.glob(pattern)
21
25
 
@@ -29,9 +33,16 @@ module Bake
29
33
  end
30
34
 
31
35
  def clone_and_test(name, key, config)
36
+ $stderr.puts "Cloning external repository #{key}..."
32
37
  path = clone_repository(name, key, config)
33
38
 
34
- test_repository(path, config) or abort("External tests #{key} failed!")
39
+ begin
40
+ $stderr.puts "Running external tests #{key}..."
41
+ test_repository(path, config)
42
+ rescue
43
+ $stderr.puts "External tests #{key} failed!"
44
+ raise
45
+ end
35
46
  end
36
47
 
37
48
  def clone_repository(name, key, config)
@@ -52,10 +63,10 @@ module Bake
52
63
  end
53
64
 
54
65
  command << url << path
55
- system(config[:env], *command)
66
+ system!(config[:env], *command)
56
67
 
57
68
  # I tried using `bundle config --local local.async ../` but it simply doesn't work.
58
- # system("bundle", "config", "--local", "local.async", __dir__, chdir: path)
69
+ # system!("bundle", "config", "--local", "local.async", __dir__, chdir: path)
59
70
 
60
71
  gemfile_path = self.gemfile_path(path, config)
61
72
  relative_root = @root.relative_path_from(gemfile_path.dirname)
@@ -75,7 +86,7 @@ module Bake
75
86
  end
76
87
  end
77
88
 
78
- system(config[:env], "bundle", "install", chdir: path)
89
+ system!(config[:env], "bundle", "install", chdir: path)
79
90
  end
80
91
 
81
92
  return path
@@ -85,7 +96,7 @@ module Bake
85
96
  command = config.fetch(:command, DEFAULT_COMMAND)
86
97
 
87
98
  Array(command).each do |line|
88
- system(config[:env], *line, chdir: path)
99
+ system!(config[:env], *line, chdir: path)
89
100
  end
90
101
  end
91
102
 
@@ -6,7 +6,7 @@
6
6
  module Bake
7
7
  module Test
8
8
  module External
9
- VERSION = "0.5.0"
9
+ VERSION = "0.5.1"
10
10
  end
11
11
  end
12
12
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake-test-external
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -39,7 +39,7 @@ cert_chain:
39
39
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
40
40
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
41
41
  -----END CERTIFICATE-----
42
- date: 2024-06-17 00:00:00.000000000 Z
42
+ date: 2024-06-20 00:00:00.000000000 Z
43
43
  dependencies:
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: bake
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
- rubygems_version: 3.5.9
92
+ rubygems_version: 3.5.11
93
93
  signing_key:
94
94
  specification_version: 4
95
95
  summary: Run external test suites to check for breakage.
metadata.gz.sig CHANGED
Binary file