diff --git a/azure-pipelines-coverity.yml b/azure-pipelines-coverity.yml index 61489a569..7cb9064d2 100644 --- a/azure-pipelines-coverity.yml +++ b/azure-pipelines-coverity.yml @@ -20,36 +20,33 @@ jobs: COVERITY_SCAN_BUILD_COMMAND_PREPEND: "mkdir build && cd build && cmake -DWITH_EXAMPLES=ON .." COVERITY_SCAN_BUILD_COMMAND: make steps: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - checkout: self - fetchDepth: 1 - clean: true - persistCredentials: true - - name: Download Coverity Build Tool - run: | - wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$COVERITY_SCAN_TOKEN&project=$COVERITY_SCAN_PROJECT_NAME" -O cov-analysis-linux64.tar.gz - mkdir cov-analysis-linux64 - tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 - - name: Configure build with CMake - run: | - mkdir @build - cd @build - cmake .. - - name: Build with cov-build - run: | - export PATH=`pwd`/cov-analysis-linux64/bin:$PATH - cov-build --dir cov-int $COVERITY_SCAN_BUILD_COMMAND - - name: Submit the result to Coverity Scan - run: | - tar czvf libmdbx.tgz cov-int - curl \ - --form project=$COVERITY_SCAN_PROJECT_NAME \ - --form token=$COVERITY_SCAN_TOKEN \ - --form email=$COVERITY_SCAN_NOTIFICATION_EMAIL \ - --form file=@libmdbx.tgz \ - --form version=$GITHUB_SHA \ - --form description="GithubActionCI $GITHUB_ACTION" \ - https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME + - uses: actions/checkout@v2 + - checkout: self + fetchDepth: 1 + clean: true + persistCredentials: true + - name: Download Coverity Build Tool + run: | + wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$COVERITY_SCAN_TOKEN&project=$COVERITY_SCAN_PROJECT_NAME" -O cov-analysis-linux64.tar.gz + mkdir cov-analysis-linux64 + tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 + - name: Configure build with CMake + run: | + mkdir @build + cd @build + cmake .. + - name: Build with cov-build + run: | + export PATH=`pwd`/cov-analysis-linux64/bin:$PATH + cov-build --dir cov-int $COVERITY_SCAN_BUILD_COMMAND + - name: Submit the result to Coverity Scan + run: | + tar czvf libmdbx.tgz cov-int + curl \ + --form project=$COVERITY_SCAN_PROJECT_NAME \ + --form token=$COVERITY_SCAN_TOKEN \ + --form email=$COVERITY_SCAN_NOTIFICATION_EMAIL \ + --form file=@libmdbx.tgz \ + --form version=$GITHUB_SHA \ + --form description="GithubActionCI $GITHUB_ACTION" \ + https://scan.coverity.com/builds?project=$COVERITY_SCAN_PROJECT_NAME