Files
kicad-ci/default.kibot.yaml
andrewc 1e23a32622 Renamed .gitmodules to gitmodules, and .gitlab-ci.yml to kibot-ci.yml
Updated default.kibot.yaml and kibot-ci.yml to match DS.
Added ci yaml to be copied to the root of the kicad proj, it just
includes kibot-ci.yml
2023-10-19 20:57:55 +10:00

137 lines
2.7 KiB
YAML

# Example KiPlot config file
kibot:
version: 1
import:
- file: JLCPCB
definitions:
_KIBOT_POS_ENABLED: false
_KIBOT_BOM_ENABLED: false
preflight:
run_erc: true
update_xml: true
run_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"
- 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'
fill_zones: true
ignore_unconnected: false
global:
environment:
user_templates: "${CI_PROJECT_DIR}/.gitlab"
outputs:
- name: 'print_sch'
comment: "Print schematic (PDF)"
type: pdf_sch_print
dir: .
options:
output: Schematic.pdf
- name: 'print_pcb'
comment: "Print Top and Bottom Copper+Silk"
type: pcb_print
dir: .
options:
output_name: PCB.pdf
pages:
- layers:
- layer: F.Cu
- layer: F.SilkS
- layer: Edge.Cuts
- layers:
- layer: B.Cu
- layer: B.SilkS
- layer: Edge.Cuts
- name: 'bom'
comment: "BOM in csv format"
type: bom
dir: .
options:
columns:
- field: Value
name: value
- field: Quantity Per PCB
name: qty
- field: Footprint
name: footprint
- mpn
- manf
- field: References
name: refs
csv:
separator: ';'
hide_pcb_info: true
hide_stats_info: true
format: "CSV"
exclude_filter: ""
- name: 'drill'
comment: "excellon drill files"
type: excellon
dir: Gerbers
# options:
- name: 'step'
comment: "Step file of pcb"
type: step
dir: .
options:
output: '%f_%r.%x'
download: false
subst_models: true
- name: 'neo_position'
comment: "Pick and place"
type: position
options:
output: '%f_cpl.%x'
format: CSV
units: millimeters
separate_files_for_front_and_back: false
only_smd: true
- name: 'stencil'
comment: '3D printable stencil for when you forgot to order it'
type: stencil_3d
dir: '3D Stencil'
- name: 'diff_pcb'
comment: "Diff for visual comparison"
type: diff
dir: .
options:
only_different: true
old: KIBOT_TAG-0
- name: 'diff_sch'
comment: "Diff for visual comparison"
type: diff
dir: .
options:
only_different: true
pcb: false
old: KIBOT_TAG-0
groups:
- name: pcb
outputs:
- _JLCPCB_compress
- neo_position
- print_pcb
- stencil
- name: sch
outputs:
- bom
- print_sch