ci-helper 0.6.0 → 0.7.0
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.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +1 -3
- data/Gemfile.lock +1 -1
- data/lib/ci_helper/commands/run_specs.rb +5 -0
- data/lib/ci_helper/commands.rb +4 -0
- data/lib/ci_helper/version.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: 551d0cd85d5c27cb80d637eff25728c151b3b7d5d3484bfbba951f73238c0bef
|
4
|
+
data.tar.gz: 8b9b6950484b82dffb7683db561114a80f596a887200e25bc56c2c9d062d8ac4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad631ef6518703c7d416a262684f42ded724fceaa3646b29cabd3c25875d4be4dc6a54c943464f17c7d745b2c50cee293f90e2fe5ed1736836909f6b328af143
|
7
|
+
data.tar.gz: 62f003991b68a4d4c0bc95069732ae2d4c5f83741cb059e78063491fd64926da1889432c138eae7e8f3900e53f1fd533e66f5673d7b2ae8b1a164138f36e5edf
|
data/.github/workflows/test.yml
CHANGED
@@ -24,8 +24,6 @@ jobs:
|
|
24
24
|
run: bundle exec ci-helper CheckSpecSuffixes --extra-paths spec/*.rb --ignored-paths spec/*_helper.rb
|
25
25
|
- name: Run specs
|
26
26
|
run: bundle exec ci-helper RunSpecs
|
27
|
-
- name: Audit
|
28
|
-
run: bundle exec ci-helper BundlerAudit
|
29
27
|
- name: Coveralls
|
30
28
|
uses: coverallsapp/github-action@master
|
31
29
|
with:
|
@@ -39,7 +37,7 @@ jobs:
|
|
39
37
|
strategy:
|
40
38
|
fail-fast: false
|
41
39
|
matrix:
|
42
|
-
ruby: ["
|
40
|
+
ruby: ["3.0", "3.1", "3.2", "3.3"]
|
43
41
|
|
44
42
|
steps:
|
45
43
|
- uses: actions/checkout@v4
|
data/Gemfile.lock
CHANGED
@@ -7,6 +7,7 @@ module CIHelper
|
|
7
7
|
return if job_files.empty?
|
8
8
|
|
9
9
|
create_and_migrate_database! if with_database?
|
10
|
+
create_and_migrate_clickhouse_database! if with_clickhouse?
|
10
11
|
execute("bundle exec rspec #{Shellwords.join(job_files)}")
|
11
12
|
return 0 unless split_resultset?
|
12
13
|
|
@@ -40,6 +41,10 @@ module CIHelper
|
|
40
41
|
boolean_option(:with_database)
|
41
42
|
end
|
42
43
|
|
44
|
+
def with_clickhouse?
|
45
|
+
boolean_option(:with_clickhouse)
|
46
|
+
end
|
47
|
+
|
43
48
|
def split_resultset?
|
44
49
|
boolean_option(:split_resultset)
|
45
50
|
end
|
data/lib/ci_helper/commands.rb
CHANGED
@@ -50,6 +50,10 @@ module CIHelper
|
|
50
50
|
execute_with_env("bundle exec rake db:drop db:create db:migrate")
|
51
51
|
end
|
52
52
|
|
53
|
+
def create_and_migrate_clickhouse_database!
|
54
|
+
execute_with_env("bundle exec rake ch:create ch:migrate")
|
55
|
+
end
|
56
|
+
|
53
57
|
def fail!(message)
|
54
58
|
raise Error, message
|
55
59
|
end
|
data/lib/ci_helper/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ci-helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JustAnotherDude
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -112,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
115
|
+
rubygems_version: 3.5.22
|
116
116
|
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: Continuous Integration helpers for Ruby
|