Skip to content

Commit

Permalink
Add custom sections to gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cluttrdev committed Mar 7, 2024
1 parent 7b5d43c commit 94749c3
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .gitlab/gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,30 @@ test:
stage: test
cache:
- <<: *cache-defaults
before_script:
- go install gotest.tools/gotestsum@latest
script:
- |
# Start script_step_before section
echo -e "\e[0Ksection_start:$(date +%s):script_step_before\r\e[0KRunning script_step_before"
- go install gotest.tools/gotestsum@latest
- |
# End script_step_before section
echo -e "\e[0Ksection_end:$(date +%s):script_step_before\r\e[0K"
- |
# Start script_step_run section
echo -e "\e[0Ksection_start:$(date +%s):script_step_run\r\e[0KRunning script_step_run"
- ${GOPATH}/bin/gotestsum --junitfile report.xml --format testname ./test/...
after_script:
- |
# End script_step_run section
echo -e "\e[0Ksection_end:$(date +%s):script_step_run\r\e[0K"
- |
# Start script_step_after section
echo -e "\e[0Ksection_start:$(date +%s):script_step_after\r\e[0KRunning script_step_after"
- go run ./tools/junitmetrics ./report.xml
- |
# End script_step_after section
echo -e "\e[0Ksection_end:$(date +%s):script_step_after\r\e[0K"
artifacts:
when: always
reports:
Expand Down

0 comments on commit 94749c3

Please sign in to comment.