Skip to content
Snippets Groups Projects
Commit 5c217623 authored by Bo-Chun Chen's avatar Bo-Chun Chen
Browse files

Test with DEBUG flag with set -x

parent 31b7577e
No related branches found
No related tags found
No related merge requests found
Pipeline #9868 failed with stages
in 6 seconds
......@@ -26,14 +26,20 @@ build-job: # This job runs in the build stage, which runs first.
tags:
- build
script:
- |
if [ "$DEBUG" = true ]; do
set -x
fi
- echo "Compiling the code..."
- echo "Compile complete."
- set -x
- |
echo line1
echo line2
echo line3
- set +x
- |
if [ "$DEBUG" = true ]; do
set +x
fi
lint-test-job: # This job also runs in the test stage.
stage: test # It can run at the same time as unit-test-job (in parallel).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment