Inventree
This commit is contained in:
@@ -2,24 +2,23 @@
|
||||
kibot:
|
||||
version: 1
|
||||
|
||||
import:
|
||||
- file: JLCPCB
|
||||
|
||||
preflight:
|
||||
run_erc: true
|
||||
erc: true
|
||||
update_xml: true
|
||||
run_drc: true
|
||||
drc: true
|
||||
set_text_variables:
|
||||
- name: 'rev'
|
||||
command: "if [ $(git describe --tags | wc -w) -gt 0 ]; then git describe --tags; else echo $CI_COMMIT_SHORT_SHA; fi"
|
||||
command: 'if [ $(git describe --tags | wc -w) -gt 0 ]; then git describe --tags | sed -e "s/\([r,R][0-9]\+\)*$//g"; else echo $CI_COMMIT_SHORT_SHA; fi'
|
||||
- name: 'date'
|
||||
expand_kibot_patterns: true
|
||||
text: '%D'
|
||||
- name: 'name'
|
||||
expand_kibot_patterns: true
|
||||
command: 'echo $KIBOT_PCB_NAME | rev | cut -d"/" -f1 | rev | cut -d"-" -f1'
|
||||
- name: 'title'
|
||||
expand_kibot_patterns: true
|
||||
command: 'echo $KIBOT_PCB_NAME | rev | cut -d"/" -f1 | rev | cut -d"." -f1 '
|
||||
fill_zones: true
|
||||
ignore_unconnected: false
|
||||
|
||||
global:
|
||||
environment:
|
||||
@@ -61,8 +60,13 @@ outputs:
|
||||
name: qty
|
||||
- field: Footprint
|
||||
name: footprint
|
||||
- field: Datasheet
|
||||
name: datasheet
|
||||
- mpn
|
||||
- manf
|
||||
- rev
|
||||
- conn_manf
|
||||
- conn_mpn
|
||||
- field: References
|
||||
name: refs
|
||||
exclude_filter: ""
|
||||
@@ -108,6 +112,36 @@ outputs:
|
||||
download: false
|
||||
subst_models: true
|
||||
|
||||
- name: 'pcb_render'
|
||||
comment: "ISO render of the blank PCB"
|
||||
type: render_3d
|
||||
dir: .
|
||||
options:
|
||||
view: 'top'
|
||||
rotate_z: 4
|
||||
rotate_x: 3
|
||||
zoom: -1
|
||||
download: false
|
||||
download_lcsc: false
|
||||
orthographic: true
|
||||
output: 'PCB_%f_%r.%x'
|
||||
show_components: 'none'
|
||||
|
||||
- name: 'pcba_render'
|
||||
comment: "ISO render of the assembled PCB"
|
||||
type: render_3d
|
||||
dir: .
|
||||
options:
|
||||
view: 'top'
|
||||
rotate_z: 4
|
||||
rotate_x: 3
|
||||
download: false
|
||||
zoom: -1
|
||||
download_lcsc: false
|
||||
orthographic: true
|
||||
output: 'PCBA_%f_%r.%x'
|
||||
show_components: 'all'
|
||||
|
||||
- name: 'neo_position'
|
||||
comment: "Pick and place"
|
||||
type: position
|
||||
@@ -141,14 +175,77 @@ outputs:
|
||||
only_different: true
|
||||
pcb: false
|
||||
old: KIBOT_TAG-0
|
||||
|
||||
- name: 'JLCPCB_compress'
|
||||
type: compress
|
||||
extends: _JLCPCB_compress
|
||||
options:
|
||||
output: '%f_%r_JLC.%x'
|
||||
|
||||
|
||||
- name: 'interactive_bom'
|
||||
comment: "Interactive html BOM"
|
||||
type: ibom
|
||||
dir: .
|
||||
options:
|
||||
output: '%f_%r_%i.%x'
|
||||
dark_mode: true
|
||||
|
||||
- name: JLCPCB_gerbers
|
||||
comment: Gerbers compatible with JLCPCB
|
||||
type: gerber
|
||||
dir: JLCPCB
|
||||
options: &gerber_options
|
||||
exclude_edge_layer: true
|
||||
exclude_pads_from_silkscreen: true
|
||||
plot_sheet_reference: false
|
||||
plot_footprint_refs: true
|
||||
plot_footprint_values: false
|
||||
force_plot_invisible_refs_vals: false
|
||||
tent_vias: true
|
||||
use_protel_extensions: true
|
||||
create_gerber_job_file: false
|
||||
disable_aperture_macros: true
|
||||
gerber_precision: 4.6
|
||||
use_gerber_x2_attributes: false
|
||||
use_gerber_net_attributes: false
|
||||
line_width: 0.1
|
||||
subtract_mask_from_silk: true
|
||||
inner_extension_pattern: '.g%n'
|
||||
layers:
|
||||
# Note: a more generic approach is to use 'copper' but then the filenames
|
||||
# are slightly different.
|
||||
- F.Cu
|
||||
- B.Cu
|
||||
- In1.Cu
|
||||
- In2.Cu
|
||||
- In3.Cu
|
||||
- In4.Cu
|
||||
- In5.Cu
|
||||
- In6.Cu
|
||||
- F.SilkS
|
||||
- B.SilkS
|
||||
- F.Mask
|
||||
- B.Mask
|
||||
- Edge.Cuts
|
||||
- user
|
||||
|
||||
- name: JLCPCB_drill
|
||||
comment: Drill files compatible with JLCPCB
|
||||
type: excellon
|
||||
dir: JLCPCB
|
||||
options:
|
||||
pth_and_npth_single_file: false
|
||||
pth_id: '-PTH'
|
||||
npth_id: '-NPTH'
|
||||
metric_units: true
|
||||
map: gerber
|
||||
route_mode_for_oval_holes: false
|
||||
output: "%f%i.%x"
|
||||
|
||||
- name: 'JLCPCB_compress'
|
||||
comment: ZIP file for JLCPCB
|
||||
type: compress
|
||||
options:
|
||||
files:
|
||||
- from_output: JLCPCB_gerbers
|
||||
dest: /
|
||||
- from_output: JLCPCB_drill
|
||||
dest: /
|
||||
output: '%f_%r_JLC.%x'
|
||||
groups:
|
||||
- name: pcb
|
||||
outputs:
|
||||
@@ -156,6 +253,7 @@ groups:
|
||||
- neo_position
|
||||
- print_pcb
|
||||
- stencil
|
||||
- interactive_bom
|
||||
|
||||
- name: sch
|
||||
outputs:
|
||||
|
||||
Reference in New Issue
Block a user