[Compress] Added `skip_not_run`
- Used to skip outputs not generated in default runs.
This commit is contained in:
parent
5b37d88b28
commit
25b0557d5a
|
|
@ -59,6 +59,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- `show_adhesive`: to see the content of the *.Adhesive layers.
|
||||
- Navigate_Results:
|
||||
- `skip_not_run`: used to skip outputs not generated in default runs.
|
||||
- Compress:
|
||||
- `skip_not_run`: used to skip outputs not generated in default runs.
|
||||
|
||||
### Changed
|
||||
- Command line:
|
||||
|
|
|
|||
|
|
@ -2105,6 +2105,7 @@ Notes:
|
|||
- `follow_links`: [boolean=true] Store the file pointed by symlinks, not the symlink.
|
||||
- `move_files`: [boolean=false] Move the files to the archive. In other words: remove the files after adding them to the archive.
|
||||
- *remove_files*: Alias for move_files.
|
||||
- `skip_not_run`: [boolean=false] Skip outputs with `run_by_default: false`.
|
||||
- `category`: [string|list(string)=''] The category for this output. If not specified an internally defined category is used.
|
||||
Categories looks like file system paths, i.e. **PCB/fabrication/gerber**.
|
||||
The categories are currently used for `navigate_results`.
|
||||
|
|
|
|||
|
|
@ -627,6 +627,8 @@ outputs:
|
|||
# [string='%f-%i%I%v.%x'] Name for the generated archive (%i=name of the output %x=according to format). Affected by global options
|
||||
output: '%f-%i%I%v.%x'
|
||||
# `remove_files` is an alias for `move_files`
|
||||
# [boolean=false] Skip outputs with `run_by_default: false`
|
||||
skip_not_run: false
|
||||
# Files copier:
|
||||
# Useful when an external tool is used to compress the output directory.
|
||||
# Note that you can use the `compress` output to create archives
|
||||
|
|
|
|||
|
|
@ -85,6 +85,8 @@ class CompressOptions(BaseOptions):
|
|||
""" {move_files} """
|
||||
self.follow_links = True
|
||||
""" Store the file pointed by symlinks, not the symlink """
|
||||
self.skip_not_run = False
|
||||
""" Skip outputs with `run_by_default: false` """
|
||||
super().__init__()
|
||||
|
||||
def config(self, parent):
|
||||
|
|
@ -154,6 +156,8 @@ class CompressOptions(BaseOptions):
|
|||
if f.from_output:
|
||||
logger.debugl(2, '- From output `{}`'.format(f.from_output))
|
||||
files_list, out_dir, out = get_output_targets(f.from_output, self._parent)
|
||||
if not out.run_by_default and self.skip_not_run:
|
||||
continue
|
||||
output_out_dir = out_dir
|
||||
logger.debugl(2, '- List of files: {}'.format(files_list))
|
||||
if out_dir not in dirs_list:
|
||||
|
|
|
|||
|
|
@ -119,6 +119,8 @@ outputs:
|
|||
type: compress
|
||||
dir: @_KIBOT_MANF_DIR_COMP@
|
||||
options:
|
||||
# Position and BoM can be disabled
|
||||
skip_not_run: true
|
||||
files:
|
||||
- from_output: _JLCPCB_gerbers
|
||||
dest: /
|
||||
|
|
|
|||
Loading…
Reference in New Issue