Commit 5029af4f authored by Dimitris Lampridis's avatar Dimitris Lampridis

ci: properly detect hdl simulation errors

parent c79c9807
......@@ -6,6 +6,7 @@ hdl_simulation:
interruptible: true
stage: build
when: manual
allow_failure: false
needs: []
tags:
- questasim
......@@ -28,6 +29,12 @@ hdl_simulation:
- hdlmake
- make
- vsim -c -do run_ci.do
- |
if [[ $(cat transcript | tail -1 | grep -c "Errors: 0") = 0 ]]
then
echo -e "\e[31mSimulation errors detected. Aborting...\e[0m"
exit 1
fi
artifacts:
name: "$SIM_NAME-$CI_JOB_NAME-$CI_COMMIT_REF_NAME"
paths:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment