yast-rake 0.2.22.1 → 0.2.23

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: 59ceeb143d8d45718b8d1ad75dc1d790fd7970ecbd91495d658ddd5cf72ec3d5
4
- data.tar.gz: 5c080a403eaa75849c9cf6232196173be3bff773f79fc835bce97dc686d485cb
3
+ metadata.gz: 21462d119c8a35afda622d16ccf4c3431bd8893c3d9bf175c4aa4e1276c71582
4
+ data.tar.gz: 7b48079004e2c7711a0758cf885ff227856446ebcf493da180b32962dfc9ae1a
5
5
  SHA512:
6
- metadata.gz: 7750ad1deb4820cd692bd73eecb9ebb5b4d9cd233d7cc95e0e4fbe4256bd7a0d76cb36d8034e98d5d47227feccf7179d8302545126418e7697a0b128f5835c8a
7
- data.tar.gz: 36801f2e951212aa5e3def3858806b7971c65580e73a212c0a2c281cc3ab9769bd9bf41bccad3a4a9b07b9eaf3fdc3cf0fba8d12a4a38caefb5dac1fb3cc3c33
6
+ metadata.gz: c842c7ef8e558b53082563e28268527c47021e8ec870a597e60cce5a235edb0c4f87202923798035e87e52383f286a1207e9b089d97067497c8a4ff62f7e193d
7
+ data.tar.gz: 4b7e1c4efdd71cea18d41ea1f4767913a577f0410ff16d5ad7a5755b4ba9dd8c837b9ec27ed44f3dd1605386b7d83c36a6367443409608874f4e130362681706
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.22.1
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"
@@ -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
- sh "rspec --color --format doc '#{files.join("' '")}'" unless files.empty?
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.22.1
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: 2019-06-21 00:00:00.000000000 Z
11
+ date: 2018-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake