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.
  • Loading branch information
albert-github committed Jan 3, 2022
1 parent 6b95109 commit e1998ec
Showing 1 changed file with 18 additions and 40 deletions.
58 changes: 18 additions & 40 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@ jobs:
- name: Download Coverity
run: |
wget https://scan.coverity.com/download/cxx/win64 --post-data "token=$TOKEN&project=doxygen%2Fdoxygen" -O cov-analysis-win64-2020.09.zip
echo ===========
echo $TOKEN
echo ===========
unzip cov-analysis-win64-2020.09.zip
env:
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
Expand Down Expand Up @@ -113,40 +110,21 @@ 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/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 e1998ec

Please sign in to comment.