gitlab-ci.yml: init pmbootstrap for static_code_analysis.sh (!1853)
This commit is contained in:
parent
b60730499c
commit
3092fcaddb
|
@ -39,7 +39,8 @@ static-code-analysis:
|
||||||
stage: checks
|
stage: checks
|
||||||
<<: *only-default
|
<<: *only-default
|
||||||
script:
|
script:
|
||||||
- "./test/static_code_analysis.sh"
|
# Note: This script uses CI_PROJECT_DIR
|
||||||
|
- su pmos -c "CI_PROJECT_DIR=$CI_PROJECT_DIR .gitlab/shared-runner_test-pmbootstrap.sh --static-code-analysis"
|
||||||
|
|
||||||
# MR settings
|
# MR settings
|
||||||
# (Checks for "Allow commits from members who can merge to the target branch")
|
# (Checks for "Allow commits from members who can merge to the target branch")
|
||||||
|
@ -55,7 +56,7 @@ test-pmbootstrap:
|
||||||
<<: *only-default
|
<<: *only-default
|
||||||
script:
|
script:
|
||||||
# Note: This script uses CI_PROJECT_DIR
|
# Note: This script uses CI_PROJECT_DIR
|
||||||
- su pmos -c "CI_PROJECT_DIR=$CI_PROJECT_DIR .gitlab/shared-runner_test-pmbootstrap.sh"
|
- su pmos -c "CI_PROJECT_DIR=$CI_PROJECT_DIR .gitlab/shared-runner_test-pmbootstrap.sh --testcases-fast"
|
||||||
after_script:
|
after_script:
|
||||||
# Move logs so it can be saved as artifacts
|
# Move logs so it can be saved as artifacts
|
||||||
- "[[ -f /home/pmos/.local/var/pmbootstrap/log.txt ]] && mv /home/pmos/.local/var/pmbootstrap/log.txt $CI_PROJECT_DIR/log.txt"
|
- "[[ -f /home/pmos/.local/var/pmbootstrap/log.txt ]] && mv /home/pmos/.local/var/pmbootstrap/log.txt $CI_PROJECT_DIR/log.txt"
|
||||||
|
|
|
@ -29,5 +29,12 @@ set +o pipefail
|
||||||
yes | ./pmbootstrap.py zap -m -p
|
yes | ./pmbootstrap.py zap -m -p
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# testcases_fast (qemu is omitted by not passing --all)
|
case $1 in
|
||||||
./test/testcases_fast.sh
|
--static-code-analysis )
|
||||||
|
./test/static_code_analysis.sh
|
||||||
|
;;
|
||||||
|
--testcases-fast )
|
||||||
|
# testcases_fast (qemu is omitted by not passing --all)
|
||||||
|
./test/testcases_fast.sh
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
Loading…
Reference in New Issue