sysbuild 1.0.9 → 1.0.10

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/sysbuild.rb +10 -1
  3. data/lib/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c97faf6f25cc0429739a7187b90132b20e426ac
4
- data.tar.gz: 004aca5bce9e8878435eabae687f38c50cdf2a0c
3
+ metadata.gz: 6af50483eec87dfafa4a3194bfe5b2bac417b8d5
4
+ data.tar.gz: 3842d23ca21724540c4737d5073e1fff3c12bb11
5
5
  SHA512:
6
- metadata.gz: 9b9122ceedd372d4d4674a94200fe8f5b89a5e4d3b7f4c85a2c62dc56d1656ef63bf2cb521f1adbcbdc23cbf650ede5683e9c5301f233653729ceb2bc6937428
7
- data.tar.gz: d0bc9bbc4d3ffe3e3172f3a1d77f782bb8bd3757ea2f86dad349a536b6616739f386b946fe5a66f5ebc0e3a0971b663f44bdd41cb8e0309db0746d5d480a0280
6
+ metadata.gz: 96565273437b0b2f65f5d2ed587967b16762c37f12268e8b9a900e90930aeceafe30ac95dbd4162e31f680c125168e91130e428cc318da0269dc233c0071079b
7
+ data.tar.gz: 0177fb03238685f83b702739542282a8d520bc7e5e82d8794bebda7f25580e532c3ddae8325824c53ec731afcbbb2f3ce15ad3d6696be5620b4a04d82c990dff
data/lib/sysbuild.rb CHANGED
@@ -81,6 +81,7 @@ class Sysbuild_Main
81
81
  @options[:partial] = nil
82
82
  @options[:quiet] = true
83
83
  @options[:inhibit_stages] = false
84
+ @options[:with_test] = false;
84
85
 
85
86
  @valid_operations = %w"build distro check scm scm2"
86
87
 
@@ -90,6 +91,8 @@ class Sysbuild_Main
90
91
  setup_optparser
91
92
  load_spec
92
93
 
94
+ puts Paint['Running tests.', COL_NORMAL] if @options[:with_test]
95
+
93
96
  exit_code = 0
94
97
 
95
98
  case @options[:operation]
@@ -173,6 +176,10 @@ class Sysbuild_Main
173
176
  @options[:operation] = oper
174
177
  abort "-o: Operation #{oper} is not valid" unless @valid_operations.include?(oper)
175
178
  end
179
+
180
+ opt.on('-t', '--test', 'Run all tests') do
181
+ @options[:with_test] = true
182
+ end
176
183
  end
177
184
 
178
185
  @opt_parser.parse!
@@ -545,12 +552,14 @@ class Sysbuild_Main
545
552
  command << '-U ' if @options[:clean]
546
553
 
547
554
  command << '-q ' if @options[:quiet]
548
- command << '-DskipTests=true -Dskip.tests=true -Dmaven.test.skip -DskipITs '
555
+ command << '-DskipTests=true -Dskip.tests=true -Dmaven.test.skip -DskipITs ' unless @options[:with_test]
549
556
  command << 'clean ' if @options[:clean]
550
557
  command << 'install'
551
558
 
552
559
  command << ' && cd ..'
553
560
 
561
+ puts command if ENV['DEBUG']
562
+
554
563
  pid, stdin, stdout, stderr = Open4::popen4 command
555
564
 
556
565
  ignored, status = Process::waitpid2 pid
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sysbuild
2
- VERSION='1.0.9'
2
+ VERSION='1.0.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sysbuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Hawksley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-21 00:00:00.000000000 Z
11
+ date: 2018-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler