From 564611cf3fa5c872786b14267fd5b99b224559e8 Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 2 Feb 2019 20:05:30 -0500 Subject: [PATCH] tools: InteractiveHtmlBom is now a nightly job --- misc/git_cheat_sheet.txt | 5 ++++- misc/git_gc.bat | 3 +++ misc/jenkins/InteractiveHtmlBom/install.bat | 2 ++ misc/jenkins/InteractiveHtmlBom/readme.md | 3 +++ misc/jenkins/InteractiveHtmlBom/run.bat | 5 +++++ misc/jenkins/generate_doxygen/gen_upload_docs.bat | 7 ++++++- misc/www/docs/ibom/.htaccess | 1 + 7 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 misc/git_gc.bat create mode 100644 misc/jenkins/InteractiveHtmlBom/install.bat create mode 100644 misc/jenkins/InteractiveHtmlBom/readme.md create mode 100644 misc/jenkins/InteractiveHtmlBom/run.bat create mode 100644 misc/www/docs/ibom/.htaccess diff --git a/misc/git_cheat_sheet.txt b/misc/git_cheat_sheet.txt index 9d5dc7093c..13ee3942a1 100644 --- a/misc/git_cheat_sheet.txt +++ b/misc/git_cheat_sheet.txt @@ -81,6 +81,9 @@ git remote remove origin git remote add origin https://github.com/rusefi/RomRaider_copy_2.git git push -u origin master +============================= +rusEfi .git folder take about 500M on disk. Is it possible to reduce this size? +A proper answer is to split or re-create rusefi repo, but in the meantime: - +See git_gc.bat diff --git a/misc/git_gc.bat b/misc/git_gc.bat new file mode 100644 index 0000000000..ceed5c8ac0 --- /dev/null +++ b/misc/git_gc.bat @@ -0,0 +1,3 @@ +git gc --aggressive +git reflog expire --all --expire=now +git gc --prune=now --aggressive \ No newline at end of file diff --git a/misc/jenkins/InteractiveHtmlBom/install.bat b/misc/jenkins/InteractiveHtmlBom/install.bat new file mode 100644 index 0000000000..329bc127b6 --- /dev/null +++ b/misc/jenkins/InteractiveHtmlBom/install.bat @@ -0,0 +1,2 @@ +cd c:\stuff +git clone https://github.com/openscopeproject/InteractiveHtmlBom.git \ No newline at end of file diff --git a/misc/jenkins/InteractiveHtmlBom/readme.md b/misc/jenkins/InteractiveHtmlBom/readme.md new file mode 100644 index 0000000000..4583faccdb --- /dev/null +++ b/misc/jenkins/InteractiveHtmlBom/readme.md @@ -0,0 +1,3 @@ +See https://github.com/openscopeproject/InteractiveHtmlBom + +See https://github.com/openscopeproject/InteractiveHtmlBom/wiki/Usage \ No newline at end of file diff --git a/misc/jenkins/InteractiveHtmlBom/run.bat b/misc/jenkins/InteractiveHtmlBom/run.bat new file mode 100644 index 0000000000..6804ba2a0f --- /dev/null +++ b/misc/jenkins/InteractiveHtmlBom/run.bat @@ -0,0 +1,5 @@ +set kicad_path=c:\progra~1\KiCad +set ibom_cmd=%kicad_path%\bin\python.exe C:\stuff\InteractiveHtmlBom\InteractiveHtmlBom\generate_interactive_bom.py --no-browser --name-format %%f_latest --dest-dir ../ibom +echo "ibom_cmd=%ibom_cmd%" +%ibom_cmd% hardware/frankenso/frankenso.kicad_pcb +%ibom_cmd% hardware/CJ125_board/O2_input_CJ125.kicad_pcb \ No newline at end of file diff --git a/misc/jenkins/generate_doxygen/gen_upload_docs.bat b/misc/jenkins/generate_doxygen/gen_upload_docs.bat index 7971a2bc1a..3db7c8105c 100644 --- a/misc/jenkins/generate_doxygen/gen_upload_docs.bat +++ b/misc/jenkins/generate_doxygen/gen_upload_docs.bat @@ -1,5 +1,10 @@ -echo Should be executed from root folder +echo Should be executed from project root folder + +rem ibom is part of Doxygen job simply in order to reduce workspace HDD usage on my tiny build server +misc\jenkins\InteractiveHtmlBom\run.bat +ncftpput -R -v -u u71977750-docs -p %RUSEFI_DOXYGEN_FTP_PASS% %FTP_SERVER% /ibom hardware/ibom/* + pwd cd firmware diff --git a/misc/www/docs/ibom/.htaccess b/misc/www/docs/ibom/.htaccess new file mode 100644 index 0000000000..2f134288fc --- /dev/null +++ b/misc/www/docs/ibom/.htaccess @@ -0,0 +1 @@ +Options +Indexes \ No newline at end of file