autobuild 1.21.0 → 1.22.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/lint.yml +25 -0
  3. data/.github/workflows/test.yml +30 -0
  4. data/.rubocop.yml +14 -7
  5. data/autobuild.gemspec +1 -1
  6. data/bin/autobuild +1 -1
  7. data/lib/autobuild/build_logfile.rb +1 -2
  8. data/lib/autobuild/config.rb +5 -5
  9. data/lib/autobuild/environment.rb +28 -45
  10. data/lib/autobuild/exceptions.rb +11 -5
  11. data/lib/autobuild/import/archive.rb +31 -22
  12. data/lib/autobuild/import/cvs.rb +6 -6
  13. data/lib/autobuild/import/darcs.rb +4 -4
  14. data/lib/autobuild/import/git-lfs.rb +4 -4
  15. data/lib/autobuild/import/git.rb +139 -66
  16. data/lib/autobuild/import/hg.rb +7 -7
  17. data/lib/autobuild/import/svn.rb +15 -9
  18. data/lib/autobuild/importer.rb +33 -37
  19. data/lib/autobuild/mail_reporter.rb +5 -2
  20. data/lib/autobuild/package.rb +14 -12
  21. data/lib/autobuild/packages/autotools.rb +3 -8
  22. data/lib/autobuild/packages/cmake.rb +11 -8
  23. data/lib/autobuild/packages/dummy.rb +0 -4
  24. data/lib/autobuild/packages/gnumake.rb +1 -1
  25. data/lib/autobuild/packages/orogen.rb +11 -4
  26. data/lib/autobuild/packages/pkgconfig.rb +2 -2
  27. data/lib/autobuild/packages/python.rb +1 -2
  28. data/lib/autobuild/packages/ruby.rb +5 -5
  29. data/lib/autobuild/parallel.rb +7 -16
  30. data/lib/autobuild/pkgconfig.rb +1 -0
  31. data/lib/autobuild/progress_display.rb +5 -9
  32. data/lib/autobuild/rake_task_extension.rb +6 -0
  33. data/lib/autobuild/reporting.rb +7 -7
  34. data/lib/autobuild/subcommand.rb +24 -23
  35. data/lib/autobuild/timestamps.rb +3 -3
  36. data/lib/autobuild/utility.rb +3 -3
  37. data/lib/autobuild/version.rb +1 -1
  38. data/lib/autobuild.rb +0 -3
  39. metadata +5 -4
  40. data/.travis.yml +0 -21
@@ -60,7 +60,7 @@ module Autobuild
60
60
  attr_writer :target_dir
61
61
 
62
62
  # Controls whether this utility generates results or not
63
- #
63
+ #
64
64
  # By default, Autobuild assumes that utilities generate report or
65
65
  # artifact files, that are saved in {#target_dir}. Set this flag to
66
66
  # true to disable this behavior, in which case the only report will
@@ -70,7 +70,7 @@ module Autobuild
70
70
  attr_writer :no_results
71
71
 
72
72
  # Whether this utility generates results or not
73
- #
73
+ #
74
74
  # @see no_results=
75
75
  def no_results?
76
76
  @no_results
@@ -84,7 +84,7 @@ module Autobuild
84
84
  if @target_dir
85
85
  utility_prefix = Autobuild.send("#{name}_prefix") || name
86
86
  File.expand_path(@target_dir,
87
- File.expand_path(utility_prefix, package.prefix))
87
+ File.expand_path(utility_prefix, package.prefix))
88
88
  else
89
89
  File.join(package.logdir, "#{name}-results", package.name)
90
90
  end
@@ -1,3 +1,3 @@
1
1
  module Autobuild
2
- VERSION = "1.21.0".freeze unless defined? Autobuild::VERSION
2
+ VERSION = "1.22.0".freeze unless defined? Autobuild::VERSION
3
3
  end
data/lib/autobuild.rb CHANGED
@@ -17,11 +17,9 @@ require 'etc'
17
17
  require 'find'
18
18
  require 'pathname'
19
19
  require 'shellwords'
20
- require 'find'
21
20
  require 'rake/tasklib'
22
21
  require 'fileutils'
23
22
  require 'optparse'
24
- require 'rake'
25
23
  require 'singleton'
26
24
  require 'pastel'
27
25
  require 'tty-prompt'
@@ -43,7 +41,6 @@ require 'autobuild/config'
43
41
  require 'autobuild/importer'
44
42
  require 'autobuild/import/cvs'
45
43
  require 'autobuild/import/darcs'
46
- require 'autobuild/importer'
47
44
  require 'autobuild/import/git'
48
45
  require 'autobuild/import/hg'
49
46
  require 'autobuild/import/svn'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autobuild
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvain Joyeux
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-15 00:00:00.000000000 Z
11
+ date: 2021-09-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby
@@ -206,9 +206,10 @@ extensions: []
206
206
  extra_rdoc_files: []
207
207
  files:
208
208
  - ".gitattributes"
209
+ - ".github/workflows/lint.yml"
210
+ - ".github/workflows/test.yml"
209
211
  - ".gitignore"
210
212
  - ".rubocop.yml"
211
- - ".travis.yml"
212
213
  - Changes.txt
213
214
  - Gemfile
214
215
  - Manifest.txt
@@ -269,7 +270,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
269
270
  requirements:
270
271
  - - ">="
271
272
  - !ruby/object:Gem::Version
272
- version: 2.3.0
273
+ version: 2.5.0
273
274
  required_rubygems_version: !ruby/object:Gem::Requirement
274
275
  requirements:
275
276
  - - ">="
data/.travis.yml DELETED
@@ -1,21 +0,0 @@
1
- sudo: true
2
- language: ruby
3
- rvm:
4
- - '2.3'
5
- - '2.4'
6
- - '2.5'
7
- - '2.6'
8
- - '2.7'
9
- - 'jruby-9.1.15.0'
10
- matrix:
11
- allow_failures:
12
- - rvm: 'jruby-9.1.15.0'
13
-
14
- install:
15
- - sudo apt-get install build-essential
16
- - gem install bundler
17
- - bundle install --path vendor/bundle
18
-
19
- script:
20
- - bundle exec rake
21
- - bundle exec rake test