Don't cd into dir when using kibot, makes paths easier to deal with

This commit is contained in:
andrewc
2023-10-23 19:03:23 +10:00
parent acd0758622
commit ea94aadb13
2 changed files with 3 additions and 4 deletions

View File

@@ -88,7 +88,7 @@ outputs:
options:
xlsx:
# this is a relative path unfortunately
logo: "../.gitlab/micromelon_default/meta/icon.png"
logo: ".gitlab/micromelon_default/meta/icon.png"
hide_pcb_info: true
hide_stats_info: true
format: "XLSX"

View File

@@ -54,6 +54,7 @@ image:
- !reference [.commands, sch_from_pro]
- sch_arr=($SCHEMS)
- |
cd $CI_PROJECT_DIR
for i in $(seq 1 $END)
do
if [[ ${dir_arr[i-1]} == "./Frame" ]]; then
@@ -62,9 +63,7 @@ image:
echo ${dir_arr[i-1]}
echo ${sch_arr[i-1]}
python3 $CI_PROJECT_DIR/.gitlab/.scripts/orig.py ${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
cd $CI_PROJECT_DIR
kibot -e ${dir_arr[i-1]}/${sch_arr[i-1]} -c $CI_PROJECT_DIR/.gitlab/default.kibot.yaml -d $CI_PROJECT_DIR/Fabrication/${dir_arr[i-1]} -s $SUFFIX
done
- cd $CI_PROJECT_DIR