packaging_rake_tasks 1.4.15 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/packaging/configuration.rb +13 -0
- data/lib/tasks/check_committed.rake +7 -2
- data/lib/tasks/osc.rake +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46ce3829c7375bbaa7fbae51f8dd2d048a5405f02b79a9847c2896e64b4b0bd3
|
4
|
+
data.tar.gz: 1f7d203a058da0ff9fc95bf4d76fa6e514bd1878801dc70963a12960b77f4d87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83865577aedef1a4a9e02111e73b326db1f9a69040434b8ddbac38736fccfad1b54507f1fb84c1f8927e158b22fcf37e1be8f1aff024ee1fd5433e30dcac5f5c
|
7
|
+
data.tar.gz: cb5ddfdacab8e31f46e899b77941a9a295b140343d37bfd12c850ea72996368e9c2e6260b072de829773b048a7418960928011c38955ce876302e413482a6308
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
@@ -80,5 +80,18 @@ module Packaging
|
|
80
80
|
return @version = File.read(versions.first).strip unless versions.empty?
|
81
81
|
raise "cannot find version" #TODO more heuristic
|
82
82
|
end
|
83
|
+
|
84
|
+
# configuration summary
|
85
|
+
# @return [Array<String>] human readable summary
|
86
|
+
def summary
|
87
|
+
[
|
88
|
+
"Package directory: #{package_dir}",
|
89
|
+
"OBS instance: #{obs_api}",
|
90
|
+
"OBS project: #{obs_project}",
|
91
|
+
"OBS package name: #{package_name}",
|
92
|
+
"OBS build target: #{build_dist}",
|
93
|
+
"OBS submit target: #{obs_sr_project}"
|
94
|
+
]
|
95
|
+
end
|
83
96
|
end
|
84
97
|
end
|
@@ -16,7 +16,7 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
namespace :check do
|
19
|
-
desc "check if everything is
|
19
|
+
desc "check if everything is committed to git repository"
|
20
20
|
task :committed do
|
21
21
|
ignored = `git ls-files -o --exclude-standard .`
|
22
22
|
|
@@ -26,12 +26,17 @@ namespace :check do
|
|
26
26
|
raise "New files missing in git (or add them to to .gitignore):\n#{ignored}\n\n"
|
27
27
|
end
|
28
28
|
|
29
|
+
if ENV["CHECK_MODIFIED"] == "0" || ENV["CHECK_MODIFIED"] == "false"
|
30
|
+
puts "WARNING: Skipping modified files check!"
|
31
|
+
next
|
32
|
+
end
|
33
|
+
|
29
34
|
modified = `git ls-files -m --exclude-standard .`
|
30
35
|
|
31
36
|
raise "git ls-files failed." unless $?.exitstatus.zero?
|
32
37
|
|
33
38
|
if ! modified.empty?
|
34
|
-
raise "Modified files not
|
39
|
+
raise "Modified files not committed:\n#{modified}"
|
35
40
|
end
|
36
41
|
end
|
37
42
|
end
|
data/lib/tasks/osc.rake
CHANGED
@@ -227,7 +227,7 @@ namespace :osc do
|
|
227
227
|
desc "Create submit request from devel project to target project without any other packaging or checking"
|
228
228
|
task :force do
|
229
229
|
# wait for the server service to finish to avoid "service in progress"
|
230
|
-
# error when creating a SR for a freshly
|
230
|
+
# error when creating a SR for a freshly committed package
|
231
231
|
puts "Waiting for the server side service..."
|
232
232
|
sh "osc", "-A", obs_api, "service", "wait", obs_project, package_name
|
233
233
|
|
@@ -239,4 +239,9 @@ namespace :osc do
|
|
239
239
|
end
|
240
240
|
end
|
241
241
|
end
|
242
|
+
|
243
|
+
desc "Print the current packaging configuration"
|
244
|
+
task :config do
|
245
|
+
puts Packaging::Configuration.instance.summary.join("\n")
|
246
|
+
end
|
242
247
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: packaging_rake_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josef Reidinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|