yast-rake 0.2.22.1 → 0.2.23
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/VERSION +1 -1
- data/data/targets.yml +0 -5
- data/lib/tasks/test_unit.rake +38 -2
- 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: 21462d119c8a35afda622d16ccf4c3431bd8893c3d9bf175c4aa4e1276c71582
|
4
|
+
data.tar.gz: 7b48079004e2c7711a0758cf885ff227856446ebcf493da180b32962dfc9ae1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c842c7ef8e558b53082563e28268527c47021e8ec870a597e60cce5a235edb0c4f87202923798035e87e52383f286a1207e9b089d97067497c8a4ff62f7e193d
|
7
|
+
data.tar.gz: 4b7e1c4efdd71cea18d41ea1f4767913a577f0410ff16d5ad7a5755b4ba9dd8c837b9ec27ed44f3dd1605386b7d83c36a6367443409608874f4e130362681706
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.23
|
data/data/targets.yml
CHANGED
@@ -55,11 +55,6 @@
|
|
55
55
|
obs_project: "Devel:YaST:SLE-12-SP4"
|
56
56
|
obs_sr_project: "SUSE:SLE-12-SP4:GA"
|
57
57
|
obs_target: "SLE_12_SP4"
|
58
|
-
:sle12sp5:
|
59
|
-
obs_api: "https://api.suse.de/"
|
60
|
-
obs_project: "Devel:YaST:SLE-12-SP5"
|
61
|
-
obs_sr_project: "SUSE:SLE-12-SP5:GA"
|
62
|
-
obs_target: "SLE_12_SP5"
|
63
58
|
:sle15:
|
64
59
|
obs_api: "https://api.suse.de/"
|
65
60
|
obs_project: "Devel:YaST:SLE-15"
|
data/lib/tasks/test_unit.rake
CHANGED
@@ -1,7 +1,43 @@
|
|
1
|
+
#--
|
2
|
+
# Yast rake
|
3
|
+
#
|
4
|
+
# Copyright (C) 2018 SUSE LLC
|
5
|
+
# This library is free software; you can redistribute it and/or modify
|
6
|
+
# it only under the terms of version 2.1 of the GNU Lesser General Public
|
7
|
+
# License as published by the Free Software Foundation.
|
8
|
+
#
|
9
|
+
# This library is distributed in the hope that it will be useful, but WITHOUT
|
10
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
11
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
|
12
|
+
# details.
|
13
|
+
#++
|
14
|
+
|
1
15
|
namespace :test do
|
2
16
|
desc "Runs unit tests."
|
3
17
|
task "unit" do
|
4
|
-
files = Dir["**/test/**/*_{spec,test}.rb"]
|
5
|
-
|
18
|
+
files = Dir["**/test/**/*_{spec,test}.rb"].join("' '")
|
19
|
+
next if files.empty?
|
20
|
+
|
21
|
+
# use parallel_tests if configured, allow changing it via environment
|
22
|
+
if (File.exist?(".rspec_parallel") && ENV["PARALLEL_TESTS"] != "0") ||
|
23
|
+
ENV["PARALLEL_TESTS"] == "1"
|
24
|
+
|
25
|
+
# pass custom parameters to parallel_rspec if needed,
|
26
|
+
# e.g. the number of CPUs to use
|
27
|
+
sh "parallel_rspec --verbose #{ENV["PARALLEL_TESTS_OPTIONS"]} '#{files}'"
|
28
|
+
|
29
|
+
# use coveralls for on-line code coverage reporting at Travis CI, it needs
|
30
|
+
# to be called only once, after *all* parallel tests have been finished
|
31
|
+
if ENV["COVERAGE"] && ENV["TRAVIS"] && File.exist?(".coveralls.yml")
|
32
|
+
require "coveralls/rake/task"
|
33
|
+
Coveralls::RakeTask.new
|
34
|
+
Rake::Task["coveralls:push"].invoke
|
35
|
+
end
|
36
|
+
else
|
37
|
+
sh "rspec --color --format doc '#{files}'"
|
38
|
+
# with standard RSpec the code coverage is usually configured in the
|
39
|
+
# test helper and is already sent at this point, no special handling
|
40
|
+
# is required
|
41
|
+
end
|
6
42
|
end
|
7
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yast-rake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josef Reidinger
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|