local_ci_plus 0.5.0 → 0.6.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
  SHA256:
3
- metadata.gz: c5e469a0e3234d66985a729cb66222e4f57ea4f627804a7ff4d96f39dcafc2c0
4
- data.tar.gz: 0ae35f6c3627d2fdf6fd68b27278563d346a560d419259f115b685c41d1693c0
3
+ metadata.gz: 52d82a3a662d876af8bd88a3ba88c27050b44a48a506a26688d719a9cd5b05a6
4
+ data.tar.gz: 55c9c680244d18fe4d3f929a58478843d15ac6fd272d622c912cb6a2ce2950b7
5
5
  SHA512:
6
- metadata.gz: 02d9a9b3b8af2921728c5e3c7625247e72ceee8d43e2512d7f8de851a956ae1c24a2cace9691655db01600e505e834d37d0792161b4a401a4b2cad3e629b2b12
7
- data.tar.gz: '08442d855fa89ee0739d90e62145a19720ea6c44f961c1ba3af33dee3289928650e9fc32987699f0bec2a28187a81a235ef98ab0ef79ef7bb6f11d435a467d51'
6
+ metadata.gz: ed182ba9daadbb729a5372043d0b9990698ea3b5646df35ddbb26eca7e3449aa36325997eac26306bd45c2f7e4a0e127b262de92824439df07d97e7adabe772c
7
+ data.tar.gz: 44a487af7e2cf061c6287d73aab17a901ccd11f7d6cbe43f7d2b8e9064b1a6e5ebe7ada4d5f2a8e1c858e68d833c2a691d1c42bb1288b7468ce09141a6107115
data/README.md CHANGED
@@ -51,16 +51,15 @@ require_relative "../config/ci"
51
51
 
52
52
  ### Options
53
53
 
54
+ Runs all CI steps in parallel by default.
55
+
54
56
  ```
55
- -f, --fail-fast Stop immediately when a step fails
56
- -c, --continue Resume from the last failed step
57
+ -f, --fail-fast Stop immediately when a step fails (runs inline)
58
+ -c, --continue Resume from the last failed step (runs inline)
57
59
  -fc, -cf Combine fail-fast and continue
58
- -p, --parallel Run all steps concurrently
60
+ -i, --inline Run steps sequentially instead of parallel
59
61
  --plain Disable ANSI cursor updates/colors (also used for non-TTY)
60
62
  -h, --help Show this help
61
-
62
- Compatibility:
63
- --parallel cannot be combined with --fail-fast or --continue
64
63
  ```
65
64
 
66
65
  ### State file
@@ -83,8 +82,8 @@ bundle exec standardrb
83
82
 
84
83
  Or run them both:
85
84
 
86
- ```base
87
- bin/ci --parallel
85
+ ```bash
86
+ bin/ci
88
87
  ```
89
88
 
90
89
  ### Publishing Updates
@@ -96,3 +95,9 @@ bin/ci --parallel
96
95
  gem build local_ci_plus.gemspec
97
96
  gem push local_ci_plus-X.Y.Z.gem
98
97
  ```
98
+
99
+ ## Prior Work
100
+
101
+ This project is based off of ActiveSupport::ContinuousIntegration.
102
+
103
+ Many thanks to the Rails team for shipping the original work.
@@ -4,7 +4,7 @@
4
4
  # - bin/ci -f (--fail-fast): Stop immediately when a step fails
5
5
  # - bin/ci -c (--continue): Resume from the last failed step
6
6
  # - bin/ci -fc: Both options combined
7
- # - bin/ci -p (--parallel): Run all steps concurrently
7
+ # - bin/ci -i (--inline): Run steps sequentially (default is parallel)
8
8
 
9
9
  require "fileutils"
10
10
  require "tempfile"
@@ -50,12 +50,7 @@ module LocalCiPlus
50
50
  end
51
51
 
52
52
  def validate_mode_compatibility!
53
- if parallel? && fail_fast?
54
- abort colorize("#{status_marker(:error)} Cannot combine --parallel with --fail-fast", :error)
55
- end
56
- if parallel? && continue_mode?
57
- abort colorize("#{status_marker(:error)} Cannot combine --parallel with --continue", :error)
58
- end
53
+ # No incompatible combinations now that fail-fast/continue auto-disable parallel
59
54
  end
60
55
 
61
56
  def help?
@@ -66,16 +61,15 @@ module LocalCiPlus
66
61
  $stdout.puts <<~HELP
67
62
  Usage: bin/ci [options]
68
63
 
64
+ Runs all CI steps in parallel by default.
65
+
69
66
  Options:
70
- -f, --fail-fast Stop immediately when a step fails
71
- -c, --continue Resume from the last failed step
67
+ -f, --fail-fast Stop immediately when a step fails (runs inline)
68
+ -c, --continue Resume from the last failed step (runs inline)
72
69
  -fc, -cf Combine fail-fast and continue
73
- -p, --parallel Run all steps concurrently
70
+ -i, --inline Run steps sequentially instead of parallel
74
71
  --plain Disable ANSI cursor updates/colors (also used for non-TTY)
75
72
  -h, --help Show this help
76
-
77
- Compatibility:
78
- --parallel cannot be combined with --fail-fast or --continue
79
73
  HELP
80
74
  end
81
75
 
@@ -198,7 +192,10 @@ module LocalCiPlus
198
192
  end
199
193
 
200
194
  def parallel?
201
- ARGV.include?("-p") || ARGV.include?("--parallel")
195
+ return false if ARGV.include?("-i") || ARGV.include?("--inline")
196
+ return false if fail_fast? || continue_mode?
197
+
198
+ true
202
199
  end
203
200
 
204
201
  def plain?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LocalCiPlus
4
- VERSION = "0.5.0"
4
+ VERSION = "0.6.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: local_ci_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scott Watermasysk