gitlab-ci.yml: init pmbootstrap for static_code_analysis.sh (!1853)

This commit is contained in:
Daniele Debernardi 2020-01-04 01:56:08 +01:00
parent b60730499c
commit 3092fcaddb
No known key found for this signature in database
GPG Key ID: 5782FCF5DAE9AF60
2 changed files with 12 additions and 4 deletions

View File

@ -39,7 +39,8 @@ static-code-analysis:
stage: checks
<<: *only-default
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
# (Checks for "Allow commits from members who can merge to the target branch")
@ -55,7 +56,7 @@ test-pmbootstrap:
<<: *only-default
script:
# 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:
# 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"

View File

@ -29,5 +29,12 @@ set +o pipefail
yes | ./pmbootstrap.py zap -m -p
set -o pipefail
# testcases_fast (qemu is omitted by not passing --all)
./test/testcases_fast.sh
case $1 in
--static-code-analysis )
./test/static_code_analysis.sh
;;
--testcases-fast )
# testcases_fast (qemu is omitted by not passing --all)
./test/testcases_fast.sh
;;
esac