Directory mapping corrected
JLC compress output now works Fixed up xlsx bom Renamed pcb print output
This commit is contained in:
@@ -4,10 +4,6 @@ kibot:
|
|||||||
|
|
||||||
import:
|
import:
|
||||||
- file: JLCPCB
|
- file: JLCPCB
|
||||||
definitions:
|
|
||||||
_KIBOT_POS_ENABLED: false
|
|
||||||
_KIBOT_BOM_ENABLED: false
|
|
||||||
_KIBOT_MANF_DIR_COMP: "%f-%r"
|
|
||||||
|
|
||||||
preflight:
|
preflight:
|
||||||
run_erc: true
|
run_erc: true
|
||||||
@@ -29,6 +25,7 @@ global:
|
|||||||
environment:
|
environment:
|
||||||
user_templates: "${CI_PROJECT_DIR}/.gitlab"
|
user_templates: "${CI_PROJECT_DIR}/.gitlab"
|
||||||
|
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
- name: 'print_sch'
|
- name: 'print_sch'
|
||||||
comment: "Print schematic (PDF)"
|
comment: "Print schematic (PDF)"
|
||||||
@@ -42,7 +39,7 @@ outputs:
|
|||||||
type: pcb_print
|
type: pcb_print
|
||||||
dir: .
|
dir: .
|
||||||
options:
|
options:
|
||||||
output: "%f_%r_%i.%x"
|
output: "%f_%r_PCB.%x"
|
||||||
pages:
|
pages:
|
||||||
- layers:
|
- layers:
|
||||||
- layer: F.Cu
|
- layer: F.Cu
|
||||||
@@ -69,6 +66,8 @@ outputs:
|
|||||||
- field: References
|
- field: References
|
||||||
name: refs
|
name: refs
|
||||||
exclude_filter: ""
|
exclude_filter: ""
|
||||||
|
output: "%f_%r_%i.%x"
|
||||||
|
expand_text_vars: true
|
||||||
disable_run_by_default: true
|
disable_run_by_default: true
|
||||||
|
|
||||||
- name: 'bom_csv'
|
- name: 'bom_csv'
|
||||||
@@ -81,7 +80,6 @@ outputs:
|
|||||||
hide_pcb_info: true
|
hide_pcb_info: true
|
||||||
hide_stats_info: true
|
hide_stats_info: true
|
||||||
format: "CSV"
|
format: "CSV"
|
||||||
output: "%f_%r_%i.%x"
|
|
||||||
|
|
||||||
- name: 'bom_xlsx'
|
- name: 'bom_xlsx'
|
||||||
type: bom
|
type: bom
|
||||||
@@ -89,10 +87,11 @@ outputs:
|
|||||||
extends: '_bom'
|
extends: '_bom'
|
||||||
options:
|
options:
|
||||||
xlsx:
|
xlsx:
|
||||||
logo: "${CI_PROJECT_DIR}/.gitlab/micromelon_default/meta/icon.png"
|
# this is a relative path unfortunately
|
||||||
|
logo: "../.gitlab/micromelon_default/meta/icon.png"
|
||||||
hide_pcb_info: true
|
hide_pcb_info: true
|
||||||
hide_stats_info: true
|
hide_stats_info: true
|
||||||
format: "xlsx"
|
format: "XLSX"
|
||||||
|
|
||||||
# - name: 'drill'
|
# - name: 'drill'
|
||||||
# comment: "excellon drill files"
|
# comment: "excellon drill files"
|
||||||
@@ -122,7 +121,7 @@ outputs:
|
|||||||
- name: 'stencil'
|
- name: 'stencil'
|
||||||
comment: '3D printable stencil for when you forgot to order it'
|
comment: '3D printable stencil for when you forgot to order it'
|
||||||
type: stencil_3d
|
type: stencil_3d
|
||||||
dir: '3D Stencil'
|
dir: '3D_Stencil'
|
||||||
options:
|
options:
|
||||||
output: '%f_%r_%i.%x'
|
output: '%f_%r_%i.%x'
|
||||||
|
|
||||||
@@ -142,11 +141,18 @@ outputs:
|
|||||||
only_different: true
|
only_different: true
|
||||||
pcb: false
|
pcb: false
|
||||||
old: KIBOT_TAG-0
|
old: KIBOT_TAG-0
|
||||||
|
|
||||||
|
- name: 'JLCPCB_compress'
|
||||||
|
type: compress
|
||||||
|
extends: _JLCPCB_compress
|
||||||
|
options:
|
||||||
|
output: '%f_%r_JLC.%x'
|
||||||
|
|
||||||
|
|
||||||
groups:
|
groups:
|
||||||
- name: pcb
|
- name: pcb
|
||||||
outputs:
|
outputs:
|
||||||
- _JLCPCB_compress
|
- JLCPCB_compress
|
||||||
- neo_position
|
- neo_position
|
||||||
- print_pcb
|
- print_pcb
|
||||||
- stencil
|
- stencil
|
||||||
@@ -156,3 +162,8 @@ groups:
|
|||||||
- bom_csv
|
- bom_csv
|
||||||
- bom_xlsx
|
- bom_xlsx
|
||||||
- print_sch
|
- print_sch
|
||||||
|
...
|
||||||
|
definitions:
|
||||||
|
_KIBOT_POS_ENABLED: false
|
||||||
|
_KIBOT_BOM_ENABLED: false
|
||||||
|
_KIBOT_MANF_DIR_COMP: "."
|
||||||
|
|||||||
19
kibot-ci.yml
19
kibot-ci.yml
@@ -32,9 +32,9 @@ image:
|
|||||||
|
|
||||||
.commands:
|
.commands:
|
||||||
get_files:
|
get_files:
|
||||||
- FILES=$(find $CI_PROJECT_DIR -name *$SEARCH)
|
- FILES=$(find . -name *$SEARCH -not -path "./.gitlab/*")
|
||||||
get_dirs:
|
get_dirs:
|
||||||
- FILES=$(find CI_PROJECT_DIR -name *$SEARCH)
|
- FILES=$(find . -name *$SEARCH -not -path "./.gitlab/*")
|
||||||
- |
|
- |
|
||||||
if [[ $FILES == "" ]]; then
|
if [[ $FILES == "" ]]; then
|
||||||
DIRS=""
|
DIRS=""
|
||||||
@@ -56,12 +56,12 @@ image:
|
|||||||
- |
|
- |
|
||||||
for i in $(seq 1 $END)
|
for i in $(seq 1 $END)
|
||||||
do
|
do
|
||||||
if [[ ${dir_arr[i-1]} == "$CI_PROJECT_DIR/Frame" ]]; then
|
if [[ ${dir_arr[i-1]} == "./Frame" ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo ${dir_arr[i-1]}
|
echo ${dir_arr[i-1]}
|
||||||
echo ${sch_arr[i-1]}
|
echo ${sch_arr[i-1]}
|
||||||
cd $CI_PROJECT_DIR/${dir_arr[i-1]}
|
cd ${dir_arr[i-1]}
|
||||||
kibot -e ${sch_arr[i-1]} -c $CI_PROJECT_DIR/.gitlab/default.kibot.yaml -d $CI_PROJECT_DIR/Fabrication/${dir_arr[i-1]} -s $SUFFIX
|
kibot -e ${sch_arr[i-1]} -c $CI_PROJECT_DIR/.gitlab/default.kibot.yaml -d $CI_PROJECT_DIR/Fabrication/${dir_arr[i-1]} -s $SUFFIX
|
||||||
done
|
done
|
||||||
- cd $CI_PROJECT_DIR
|
- cd $CI_PROJECT_DIR
|
||||||
@@ -73,7 +73,7 @@ image:
|
|||||||
for d in $DIRS
|
for d in $DIRS
|
||||||
do
|
do
|
||||||
echo $d
|
echo $d
|
||||||
cd $CI_PROJECT_DIR/$d
|
cd $d
|
||||||
JSON=$(find *_panel.json)
|
JSON=$(find *_panel.json)
|
||||||
NAME=$(echo "${JSON%.json}")
|
NAME=$(echo "${JSON%.json}")
|
||||||
PCB=$(find *.kicad_pcb)
|
PCB=$(find *.kicad_pcb)
|
||||||
@@ -81,7 +81,7 @@ image:
|
|||||||
kikit panelize -p $JSON $PCB $CI_PROJECT_DIR/$NAME/$NAME.kicad_pcb
|
kikit panelize -p $JSON $PCB $CI_PROJECT_DIR/$NAME/$NAME.kicad_pcb
|
||||||
touch $CI_PROJECT_DIR/$NAME/$NAME.kicad_sch
|
touch $CI_PROJECT_DIR/$NAME/$NAME.kicad_sch
|
||||||
cp fp-lib-table $CI_PROJECT_DIR/$NAME/
|
cp fp-lib-table $CI_PROJECT_DIR/$NAME/
|
||||||
python3 $CI_PROJECT_DIR/.scripts/post_panel.py $CI_PROJECT_DIR/$NAME/$NAME.kicad_pro $PCB
|
python3 $CI_PROJECT_DIR/.gitlab/.scripts/post_panel.py $CI_PROJECT_DIR/$NAME/$NAME.kicad_pro $PCB
|
||||||
done
|
done
|
||||||
- cd $CI_PROJECT_DIR
|
- cd $CI_PROJECT_DIR
|
||||||
|
|
||||||
@@ -91,11 +91,11 @@ image:
|
|||||||
- |
|
- |
|
||||||
for d in $DIRS
|
for d in $DIRS
|
||||||
do
|
do
|
||||||
if [[ $d == "$CI_PROJECT_DIR/Frame" ]]; then
|
if [[ $d == "./Frame" ]]; then
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo $d
|
echo $d
|
||||||
python3 .scripts/neo.py $d
|
python3 $CI_PROJECT_DIR/.gitlab/.scripts/neo.py $d
|
||||||
done
|
done
|
||||||
|
|
||||||
git_tag:
|
git_tag:
|
||||||
@@ -179,6 +179,3 @@ release_job:
|
|||||||
links:
|
links:
|
||||||
- name: All Fab
|
- name: All Fab
|
||||||
url: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/download"
|
url: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/download"
|
||||||
links:
|
|
||||||
- name: All Fab
|
|
||||||
url: "${CI_PROJECT_URL}/-/jobs/${CI_JOB_ID}/artifacts/download"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user