Skip to content

Commit

Permalink
issue #6992 Automatic Coverity run
Browse files Browse the repository at this point in the history
Having Coverity automatically run.

Strange error: You have an error in your yaml syntax on line 105
Checking if everything before is correct.
  • Loading branch information
albert-github committed Jan 2, 2022
1 parent f2ce5c8 commit 12f9bc0
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,40 +102,40 @@ jobs:
if (NOT result EQUAL 0)
message(FATAL_ERROR "Bad exit status")
endif()
- name: Build
shell: cmake -P {0}
run: |
include(ProcessorCount)
ProcessorCount(N)
execute_process(
COMMAND cmake --build build --parallel ${N}
RESULT_VARIABLE result
OUTPUT_VARIABLE output
ERROR_VARIABLE output
ECHO_OUTPUT_VARIABLE ECHO_ERROR_VARIABLE
)
if (NOT result EQUAL 0)
string(REGEX MATCH "FAILED:.*$" error_message "${output}")
string(REPLACE "\n" "%0A" error_message "${error_message}")
message("::error::${error_message}")
message(FATAL_ERROR "Build failed")
endif()
- name: Build/scan doxygen
run: |
cov-build --dir cov-int nmake
# don't submit during test just create tar file
- name: Submit results
run: |
tar zcf doxygen.tgz cov-int
# curl --form token=$TOKEN \
# --form email=$EMAIL \
# --form file=@doxygen.tgz \
# --form version="$(git rev-parse HEAD)" \
# --form description="Automatic GHA scan" \
# 'https://scan.coverity.com/builds?project=doxygen'
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }}
#
# - name: Build
# shell: cmake -P {0}
# run: |
# include(ProcessorCount)
# ProcessorCount(N)
# execute_process(
# COMMAND cmake --build build --parallel ${N}
# RESULT_VARIABLE result
# OUTPUT_VARIABLE output
# ERROR_VARIABLE output
# ECHO_OUTPUT_VARIABLE ECHO_ERROR_VARIABLE
# )
# if (NOT result EQUAL 0)
# string(REGEX MATCH "FAILED:.*$" error_message "${output}")
# string(REPLACE "\n" "%0A" error_message "${error_message}")
# message("::error::${error_message}")
# message(FATAL_ERROR "Build failed")
# endif()
#
# - name: Build/scan doxygen
# run: |
# cov-build --dir cov-int nmake
#
## don't submit during test just create tar file
# - name: Submit results
# run: |
# tar zcf doxygen.tgz cov-int
## curl --form token=$TOKEN \
## --form email=$EMAIL \
## --form file=@doxygen.tgz \
## --form version="$(git rev-parse HEAD)" \
## --form description="Automatic GHA scan" \
## 'https://scan.coverity.com/builds?project=doxygen'
# env:
# TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
# EMAIL: ${{ secrets.COVERITY_SCAN_EMAIL }}

0 comments on commit 12f9bc0

Please sign in to comment.