Fixed up pre-push hook
This commit is contained in:
Submodule .scripts/ki-ntree updated: 26ff98818f...c66d40daf7
@@ -25,6 +25,8 @@ src = json.loads(json_str)
|
|||||||
json_file = open(proj)
|
json_file = open(proj)
|
||||||
json_str = json_file.read()
|
json_str = json_file.read()
|
||||||
dest = json.loads(json_str)
|
dest = json.loads(json_str)
|
||||||
|
dest["board"]["design_settings"]["rule_severities"]["duplicate_footprints"] = "ignore"
|
||||||
|
dest["board"]["design_settings"]["rule_severities"]["extra_footprint"] = "ignore"
|
||||||
dest["board"]["design_settings"]["rule_severities"]["lib_footprint_issues"] = "ignore"
|
dest["board"]["design_settings"]["rule_severities"]["lib_footprint_issues"] = "ignore"
|
||||||
dest["board"]["design_settings"]["rule_severities"]["lib_footprint_mismatch"] = "ignore"
|
dest["board"]["design_settings"]["rule_severities"]["lib_footprint_mismatch"] = "ignore"
|
||||||
dest["board"]["design_settings"]["rule_severities"]["hole_near_hole"] = "ignore"
|
dest["board"]["design_settings"]["rule_severities"]["hole_near_hole"] = "ignore"
|
||||||
|
|||||||
@@ -255,6 +255,13 @@ groups:
|
|||||||
- stencil
|
- stencil
|
||||||
- interactive_bom
|
- interactive_bom
|
||||||
|
|
||||||
|
- name: pcb_panel
|
||||||
|
outputs:
|
||||||
|
- JLCPCB_compress
|
||||||
|
- neo_position
|
||||||
|
- print_pcb
|
||||||
|
- interactive_bom
|
||||||
|
|
||||||
- name: sch
|
- name: sch
|
||||||
outputs:
|
outputs:
|
||||||
- bom_csv
|
- bom_csv
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
kimelon unlock all
|
kimelon git unlock all
|
||||||
|
|
||||||
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/pre-push'.\n"; exit 2; }
|
command -v git-lfs >/dev/null 2>&1 || { echo >&2 "\nThis repository is configured for Git LFS but 'git-lfs' was not found on your path. If you no longer wish to use Git LFS, remove this hook by deleting '.git/hooks/pre-push'.\n"; exit 2; }
|
||||||
git lfs pre-push "$@"
|
git lfs pre-push "$@"
|
||||||
|
|||||||
21
kibot-ci.yml
21
kibot-ci.yml
@@ -75,7 +75,6 @@ image:
|
|||||||
- !reference [.commands, sch_from_pro]
|
- !reference [.commands, sch_from_pro]
|
||||||
- sch_arr=($SCHEMS)
|
- sch_arr=($SCHEMS)
|
||||||
- |
|
- |
|
||||||
cd $CI_PROJECT_DIR
|
|
||||||
for i in $(seq 1 $END)
|
for i in $(seq 1 $END)
|
||||||
do
|
do
|
||||||
if [[ ${dir_arr[i-1]} == "./Frame" ]]; then
|
if [[ ${dir_arr[i-1]} == "./Frame" ]]; then
|
||||||
@@ -93,6 +92,7 @@ image:
|
|||||||
- 'SEARCH="_panel.json"'
|
- 'SEARCH="_panel.json"'
|
||||||
- !reference [.commands, get_dirs]
|
- !reference [.commands, get_dirs]
|
||||||
- |
|
- |
|
||||||
|
mkdir panels
|
||||||
cd $CI_PROJECT_DIR
|
cd $CI_PROJECT_DIR
|
||||||
for d in $DIRS
|
for d in $DIRS
|
||||||
do
|
do
|
||||||
@@ -103,14 +103,17 @@ image:
|
|||||||
NAME=$(echo "${FILE%.json}")
|
NAME=$(echo "${FILE%.json}")
|
||||||
PCB=$(find $d/*.kicad_pcb)
|
PCB=$(find $d/*.kicad_pcb)
|
||||||
echo "mkdring"
|
echo "mkdring"
|
||||||
mkdir $NAME
|
mkdir -p panels/$NAME
|
||||||
echo "panelising"
|
echo "panelising"
|
||||||
kikit panelize -p $JSON $PCB $NAME/$NAME.kicad_pcb
|
kikit panelize -p $JSON $PCB panels/$NAME/$NAME.kicad_pcb
|
||||||
cp .gitlab/micromelon_default/micromelon_default.kicad_sch $NAME/$NAME.kicad_sch
|
cp .gitlab/micromelon_default/micromelon_default.kicad_sch panels/$NAME/$NAME.kicad_sch
|
||||||
cp $d/fp-lib-table $NAME/
|
cp $d/fp-lib-table panels/$NAME/
|
||||||
python3 .gitlab/.scripts/post_panel.py $NAME/$NAME.kicad_pro $PCB
|
python3 .gitlab/.scripts/post_panel.py panels/$NAME/$NAME.kicad_pro $PCB
|
||||||
done
|
done
|
||||||
- cd $CI_PROJECT_DIR
|
- cd panels || true
|
||||||
|
- !reference [.commands, kibot]
|
||||||
|
- mv panels/* .
|
||||||
|
- rm -rf panels/
|
||||||
|
|
||||||
neo:
|
neo:
|
||||||
- 'SEARCH=".kicad_pro"'
|
- 'SEARCH=".kicad_pro"'
|
||||||
@@ -268,13 +271,15 @@ outputs_all:
|
|||||||
variables:
|
variables:
|
||||||
SUFF_SCH: drc sch
|
SUFF_SCH: drc sch
|
||||||
SUFF_PCB: erc,update_xml,set_text_variables pcb
|
SUFF_PCB: erc,update_xml,set_text_variables pcb
|
||||||
|
SUFF_PANEL: erc,update_xml,set_text_variables pcb_panel
|
||||||
script:
|
script:
|
||||||
- !reference [.commands, git_tag]
|
- !reference [.commands, git_tag]
|
||||||
- SUFFIX=$SUFF_SCH
|
- SUFFIX=$SUFF_SCH
|
||||||
- !reference [.commands, kibot]
|
- !reference [.commands, kibot]
|
||||||
- SUFFIX=$SUFF_PCB
|
- SUFFIX=$SUFF_PCB
|
||||||
- !reference [.commands, panel]
|
|
||||||
- !reference [.commands, kibot]
|
- !reference [.commands, kibot]
|
||||||
|
- SUFFIX=$SUFF_PANEL
|
||||||
|
- !reference [.commands, panel]
|
||||||
- !reference [.commands, neo]
|
- !reference [.commands, neo]
|
||||||
- ls Fabrication/
|
- ls Fabrication/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user