# oneos_test **Repository Path**: oneos-ci/oneos_test ## Basic Information - **Project Name**: oneos_test - **Description**: for test - **Primary Language**: Python - **License**: AGPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-01-25 - **Last Updated**: 2024-07-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # requirements ## jenkins pipeline utility steps ## python pywin32 pyserial robotframework scons celery==4.4.0 ## slave ### windows: mdk env_tools st-link utility config path ### linux: gcc-arm-none-eabi config path # clang-analyzer yum install clang yum install python36 pip install scan-build # way 1 yum install clang-analyzer # need ccc-analyzer export RTT_EXEC_PATH=/usr/libexec scan-build --intercept-first --analyze-headers -o analyzer_reports scons --clang-analyzer # clang, scan-build, ccc-analyzer 都在RTT_EXEC_PATH下面,建立链接 # ln -s /usr/libexec/ccc-analyzer /usr/bin/ccc-analyzer # ln -s /usr/libexec/c++-analyzer /usr/bin/c++-analyzer # export RTT_EXEC_PATH=/usr/bin # scan-build --intercept-first --analyze-headers -o analyzer_reports scons --clang-analyzer # way 2 (no need ccc-analyzer) export RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-9-2019-q4-major/bin intercept-build scons analyze-build --cdb compile_commands.json --analyze-headers -o analyzer_reports # cppcheck # install cppcheck on centos8 dnf --enablerepo=PowerTools install cppcheck # install cppcheck-htmlreport # just copy from source folder: cppcheck/htmlreport/cppcheck-htmlreport pip install pygments export RTT_EXEC_PATH=/opt/gcc-arm-none-eabi-9-2019-q4-major/bin intercept-build scons cppcheck --project=compile_commands.json --xml-version=2 --output-file=cppcheck_result.xml cppcheck-htmlreport --file=cppcheck_result.xml --report-dir=cppcheck_report --source-dir=. # celery # scheduler celery worker -A scheduler -Q scheduler -P solo -l info celery beat -A app # board celery worker -A board -Q board -P solo -l info --node windows1 # jenkins python cmd.py get stm32l475 python cmd.py put xxxx(sn) # scheduler in docker docker build -t os-ci-sched . docker run -d os-ci-sched # gitlab hook gitlab -> job for repo --trigger all job in the repo --> each job (for proj) copy from emb-pipeline-template # limits only support stm32 now windows node cannot perform static check utest timeout 5 min schedule timeout 10 min job cannot concurrent # merge checkout([$class: 'GitSCM', branches: [[name: 'origin/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: 'CleanBeforeCheckout'], [$class: 'PreBuildMerge', options: [mergeRemote: 'upstream', mergeTarget: 'master']]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'git', name: 'origin', url: 'http://172.16.3.21/simulator/test.git'], [credentialsId: 'git', name: 'upstream', url: 'http://172.16.3.21/lgln/test.git']]]) git remote add upstream git@172.16.3.21:lgln/test.git git fetch upstream git merge upstream/master