wwtd 0.4.8 → 0.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9cf0ec66569b4a7792bf67b1ec5ab99708880ca9
4
- data.tar.gz: af6cc6a2097cbe533eb0d6a50e49a3ed7bde63d3
3
+ metadata.gz: 216b093f43d1e8dd5cec7d94f29322982eedc551
4
+ data.tar.gz: 2a5f7e9041767f508c540b30b269855ddad9776b
5
5
  SHA512:
6
- metadata.gz: 66ed2fb88a3dbbcda8da3444a82ee138c84caa3be63014ae3ff70dc4436eed7aad8e5040be64032b7ebdd2e6f74c9b16cd86e7780a51e53f2708f29497a297e1
7
- data.tar.gz: 46356f1d1b7d4239b38dc8977c1b49a63e0cf3218d1c690ae61a58ac12e066e29553258ba347535e55726f12bbae2d0c3613a50bbb89c9820978ad487abf2e19
6
+ metadata.gz: ccda5cd939863342839363fdfd908fe4da45cf0595ff5dab6a1aaca255c3f31d0513b8e7e7339a8f8777722527df40d9859e74aeee8216e16a9731c133d7bf44
7
+ data.tar.gz: 0dd898a43a59a01177d81427002e2c84704e8dd143961cacb121d7dee8b96e169d6c8eb770fcec57e52046c7ce12cf4687324e93b7fb8722524ec3d0fe0874fe
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -12,13 +12,14 @@ module WWTD
12
12
  CONFIG = ".travis.yml"
13
13
  DEFAULT_GEMFILE = "Gemfile"
14
14
  COMBINATORS = ["rvm", "gemfile", "env"]
15
- UNDERSTOOD = ["rvm", "gemfile", "matrix", "script", "bundler_args"]
15
+ UNDERSTOOD = COMBINATORS + ["matrix", "script", "bundler_args"]
16
16
 
17
17
  class << self
18
- def read_travis_yml
18
+ def read_travis_yml(options={})
19
19
  config = (File.exist?(CONFIG) ? YAML.load_file(CONFIG) : {})
20
20
  config.delete("source_key") # we don't need that we already have the source
21
- ignored = config.keys - UNDERSTOOD
21
+ ignored = (config.keys - UNDERSTOOD) + Array(options[:ignore])
22
+ ignored.each { |k| config.delete(k) }
22
23
  [matrix(config), ignored]
23
24
  end
24
25
 
@@ -6,13 +6,15 @@ module WWTD
6
6
 
7
7
  class << self
8
8
  def run(argv=[])
9
+ options = parse_options(argv)
10
+
9
11
  # Read travis.yml
10
- matrix, ignored = ::WWTD.read_travis_yml
12
+ matrix, ignored = ::WWTD.read_travis_yml(options)
11
13
  puts "Ignoring: #{ignored.sort.join(", ")}" if ignored.any?
12
14
 
13
15
  # Execute tests
14
16
  results = protect_against_nested_runs do
15
- ::WWTD.run(matrix, parse_options(argv)) do |state, config|
17
+ ::WWTD.run(matrix, options) do |state, config|
16
18
  puts info_line(state, config, matrix)
17
19
  end
18
20
  end
@@ -53,6 +55,7 @@ module WWTD
53
55
 
54
56
  Options:
55
57
  BANNER
58
+ opts.on("-i", "--ignore FIELDS", String, "Ignore selected travis fields like rvm/gemfile/matrix/...") { |fields| options[:ignore] = fields.split(",") }
56
59
  opts.on("-p", "--parallel [COUNT]", Integer, "Run in parallel") { |c| options[:parallel] = c || 4 }
57
60
  opts.on("-h", "--help", "Show this.") { puts opts; exit }
58
61
  opts.on("-v", "--version", "Show Version"){ puts WWTD::VERSION; exit}
@@ -1,12 +1,19 @@
1
1
  require "wwtd"
2
2
 
3
3
  run_wwtd = lambda { |args| exit 1 unless WWTD::CLI.run(args) == 0 }
4
+ desc "test on all combinations defined in .travis.yml"
4
5
  task :wwtd do
5
6
  run_wwtd.call([])
6
7
  end
7
8
 
8
9
  namespace :wwtd do
10
+ desc "test on all combinations defined in .travis.yml in parallel"
9
11
  task :parallel do
10
12
  run_wwtd.call(["--parallel"])
11
13
  end
14
+
15
+ desc "test on all combinations defined in .travis.yml on current ruby"
16
+ task :local do
17
+ run_wwtd.call(["--ignore", "rvm"])
18
+ end
12
19
  end
@@ -1,3 +1,3 @@
1
1
  module WWTD
2
- VERSION = "0.4.8"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wwtd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.8
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
@@ -30,7 +30,7 @@ cert_chain:
30
30
  F5etKHZg0j3eHO31/i2HnswY04lqGImUu6aM5EnijFTB7PPW2KwKKM4+kKDYFdlw
31
31
  /0WV1Ng2/Y6qsHwmqGg2VlYj2h4=
32
32
  -----END CERTIFICATE-----
33
- date: 2014-05-16 00:00:00.000000000 Z
33
+ date: 2014-06-13 00:00:00.000000000 Z
34
34
  dependencies: []
35
35
  description:
36
36
  email: michael@grosser.it
@@ -56,17 +56,17 @@ require_paths:
56
56
  - lib
57
57
  required_ruby_version: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  requirements:
64
- - - '>='
64
+ - - ">="
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
68
  rubyforge_project:
69
- rubygems_version: 2.0.14
69
+ rubygems_version: 2.2.2
70
70
  signing_key:
71
71
  specification_version: 4
72
72
  summary: Travis simulator so you do not need to wait for the build
metadata.gz.sig CHANGED
Binary file