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 +4 -4
- data/README.md +13 -8
- data/lib/local_ci_plus/continuous_integration.rb +11 -14
- data/lib/local_ci_plus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 52d82a3a662d876af8bd88a3ba88c27050b44a48a506a26688d719a9cd5b05a6
|
|
4
|
+
data.tar.gz: 55c9c680244d18fe4d3f929a58478843d15ac6fd272d622c912cb6a2ce2950b7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
-
|
|
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
|
-
```
|
|
87
|
-
bin/ci
|
|
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 -
|
|
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
|
-
|
|
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
|
-
-
|
|
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?("-
|
|
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?
|