Travis and Coverity Scan - Everything builds but coverity does not seem to runHow to run travis-ci locallyRun Coverity scan for every Travis pull request buildHow to setup Coverity Scan on GitHub with TravisCI?travis/coverity: automatically re-schedule a build after given timeOpenSSl Error: peer did not return a certificateCoverity scan on travis matrix buildCoverity on Travis CI not working because 'scan.coverity.com' isn't trustedHow to setup a Travis/Rails project to submit to Coverity Scan?Travis CI + Coverity scan with GradleCoverity CMake build error

There is only s̶i̶x̶t̶y one place he can be

Mapping a list into a phase plot

The baby cries all morning

At which point does a character regain all their Hit Dice?

What would happen if the UK refused to take part in EU Parliamentary elections?

What will be the benefits of Brexit?

Failed to fetch jessie backports repository

Can somebody explain Brexit in a few child-proof sentences?

Is a roofing delivery truck likely to crack my driveway slab?

Print name if parameter passed to function

Your magic is very sketchy

Why did Kant, Hegel, and Adorno leave some words and phrases in the Greek alphabet?

How can I get through very long and very dry, but also very useful technical documents when learning a new tool?

Opposite of a diet

Why is delta-v is the most useful quantity for planning space travel?

when is out of tune ok?

How can I replace every global instance of "x[2]" with "x_2"

Applicability of Single Responsibility Principle

What's a natural way to say that someone works somewhere (for a job)?

Tiptoe or tiphoof? Adjusting words to better fit fantasy races

Curses work by shouting - How to avoid collateral damage?

Is exact Kanji stroke length important?

Time travel short story where a man arrives in the late 19th century in a time machine and then sends the machine back into the past

Is it correct to write "is not focus on"?



Travis and Coverity Scan - Everything builds but coverity does not seem to run


How to run travis-ci locallyRun Coverity scan for every Travis pull request buildHow to setup Coverity Scan on GitHub with TravisCI?travis/coverity: automatically re-schedule a build after given timeOpenSSl Error: peer did not return a certificateCoverity scan on travis matrix buildCoverity on Travis CI not working because 'scan.coverity.com' isn't trustedHow to setup a Travis/Rails project to submit to Coverity Scan?Travis CI + Coverity scan with GradleCoverity CMake build error













1















This is my pretty simple C++/CMake .travis.yml




env:
global:
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
# via the "travis encrypt" command using the project repo's public key
- secure: "<very long encrypted token>"

addons:
coverity_scan:
project:
name: "tinverse/tsm"
build_command_prepend: cmake .
build_command: make
branch_pattern: coverity_scan
script:
- echo -n | openssl s_client -CApath /etc/ssl/certs -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-

apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-5
- g++-5
- clang

compiler:
- gcc
- clang

install:
# Use g++5.4 and not 4.6 (C++11 missing)
- if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi


Everything just builds fine. I do not see coverity run or upload anything. I added a 'COVERITY_SCAN_TOKEN' environment variable in travis with my unencrypted token. The build log is here: https://travis-ci.org/tinverse/tsm/jobs/509506031. I get a final "The command "./configure && make && make test" exited with 0." message from the travis-ci build log and that's it! Not sure what I'm doing wrong.



Update:
From the build log:



depth=1 C = BE, O = GlobalSign nv-sa, CN = GlobalSign CloudSSL CA - SHA256 - G3
verify error:num=20:unable to get local issuer certificate
verify return:0
DONE


However, after adding the CApath option to the openssl command in .travil.yml
in the before_install section of the script, I'm seeing



echo -n | openssl s_client -CApath /etc/ssl/certs/ -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
depth=2 C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign Root CA
verify return:1
depth=1 C = BE, O = GlobalSign nv-sa, CN = GlobalSign CloudSSL CA - SHA256 - G3
verify return:1
depth=0 C = US, ST = Delaware, L = Dover, O = Incapsula Inc, CN = incapsula.com
verify return:1
DONE


So does a non-zero return here mean success? Still, looking at the travis-ci build log, I don't think coverity scan ran.










share|improve this question




























    1















    This is my pretty simple C++/CMake .travis.yml




    env:
    global:
    # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
    # via the "travis encrypt" command using the project repo's public key
    - secure: "<very long encrypted token>"

    addons:
    coverity_scan:
    project:
    name: "tinverse/tsm"
    build_command_prepend: cmake .
    build_command: make
    branch_pattern: coverity_scan
    script:
    - echo -n | openssl s_client -CApath /etc/ssl/certs -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-

    apt:
    sources:
    - ubuntu-toolchain-r-test
    packages:
    - gcc-5
    - g++-5
    - clang

    compiler:
    - gcc
    - clang

    install:
    # Use g++5.4 and not 4.6 (C++11 missing)
    - if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi


    Everything just builds fine. I do not see coverity run or upload anything. I added a 'COVERITY_SCAN_TOKEN' environment variable in travis with my unencrypted token. The build log is here: https://travis-ci.org/tinverse/tsm/jobs/509506031. I get a final "The command "./configure && make && make test" exited with 0." message from the travis-ci build log and that's it! Not sure what I'm doing wrong.



    Update:
    From the build log:



    depth=1 C = BE, O = GlobalSign nv-sa, CN = GlobalSign CloudSSL CA - SHA256 - G3
    verify error:num=20:unable to get local issuer certificate
    verify return:0
    DONE


    However, after adding the CApath option to the openssl command in .travil.yml
    in the before_install section of the script, I'm seeing



    echo -n | openssl s_client -CApath /etc/ssl/certs/ -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
    depth=2 C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign Root CA
    verify return:1
    depth=1 C = BE, O = GlobalSign nv-sa, CN = GlobalSign CloudSSL CA - SHA256 - G3
    verify return:1
    depth=0 C = US, ST = Delaware, L = Dover, O = Incapsula Inc, CN = incapsula.com
    verify return:1
    DONE


    So does a non-zero return here mean success? Still, looking at the travis-ci build log, I don't think coverity scan ran.










    share|improve this question


























      1












      1








      1








      This is my pretty simple C++/CMake .travis.yml




      env:
      global:
      # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
      # via the "travis encrypt" command using the project repo's public key
      - secure: "<very long encrypted token>"

      addons:
      coverity_scan:
      project:
      name: "tinverse/tsm"
      build_command_prepend: cmake .
      build_command: make
      branch_pattern: coverity_scan
      script:
      - echo -n | openssl s_client -CApath /etc/ssl/certs -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-

      apt:
      sources:
      - ubuntu-toolchain-r-test
      packages:
      - gcc-5
      - g++-5
      - clang

      compiler:
      - gcc
      - clang

      install:
      # Use g++5.4 and not 4.6 (C++11 missing)
      - if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi


      Everything just builds fine. I do not see coverity run or upload anything. I added a 'COVERITY_SCAN_TOKEN' environment variable in travis with my unencrypted token. The build log is here: https://travis-ci.org/tinverse/tsm/jobs/509506031. I get a final "The command "./configure && make && make test" exited with 0." message from the travis-ci build log and that's it! Not sure what I'm doing wrong.



      Update:
      From the build log:



      depth=1 C = BE, O = GlobalSign nv-sa, CN = GlobalSign CloudSSL CA - SHA256 - G3
      verify error:num=20:unable to get local issuer certificate
      verify return:0
      DONE


      However, after adding the CApath option to the openssl command in .travil.yml
      in the before_install section of the script, I'm seeing



      echo -n | openssl s_client -CApath /etc/ssl/certs/ -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
      depth=2 C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign Root CA
      verify return:1
      depth=1 C = BE, O = GlobalSign nv-sa, CN = GlobalSign CloudSSL CA - SHA256 - G3
      verify return:1
      depth=0 C = US, ST = Delaware, L = Dover, O = Incapsula Inc, CN = incapsula.com
      verify return:1
      DONE


      So does a non-zero return here mean success? Still, looking at the travis-ci build log, I don't think coverity scan ran.










      share|improve this question
















      This is my pretty simple C++/CMake .travis.yml




      env:
      global:
      # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
      # via the "travis encrypt" command using the project repo's public key
      - secure: "<very long encrypted token>"

      addons:
      coverity_scan:
      project:
      name: "tinverse/tsm"
      build_command_prepend: cmake .
      build_command: make
      branch_pattern: coverity_scan
      script:
      - echo -n | openssl s_client -CApath /etc/ssl/certs -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-

      apt:
      sources:
      - ubuntu-toolchain-r-test
      packages:
      - gcc-5
      - g++-5
      - clang

      compiler:
      - gcc
      - clang

      install:
      # Use g++5.4 and not 4.6 (C++11 missing)
      - if [ "$CXX" = "g++" ]; then export CXX="g++-5" CC="gcc-5"; fi


      Everything just builds fine. I do not see coverity run or upload anything. I added a 'COVERITY_SCAN_TOKEN' environment variable in travis with my unencrypted token. The build log is here: https://travis-ci.org/tinverse/tsm/jobs/509506031. I get a final "The command "./configure && make && make test" exited with 0." message from the travis-ci build log and that's it! Not sure what I'm doing wrong.



      Update:
      From the build log:



      depth=1 C = BE, O = GlobalSign nv-sa, CN = GlobalSign CloudSSL CA - SHA256 - G3
      verify error:num=20:unable to get local issuer certificate
      verify return:0
      DONE


      However, after adding the CApath option to the openssl command in .travil.yml
      in the before_install section of the script, I'm seeing



      echo -n | openssl s_client -CApath /etc/ssl/certs/ -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-certificates.crt
      depth=2 C = BE, O = GlobalSign nv-sa, OU = Root CA, CN = GlobalSign Root CA
      verify return:1
      depth=1 C = BE, O = GlobalSign nv-sa, CN = GlobalSign CloudSSL CA - SHA256 - G3
      verify return:1
      depth=0 C = US, ST = Delaware, L = Dover, O = Incapsula Inc, CN = incapsula.com
      verify return:1
      DONE


      So does a non-zero return here mean success? Still, looking at the travis-ci build log, I don't think coverity scan ran.







      c++ cmake travis-ci coverity






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 21 at 17:27







      sriram

















      asked Mar 21 at 14:14









      sriramsriram

      916




      916






















          1 Answer
          1






          active

          oldest

          votes


















          0














          My branch was called feature/coverity_scan and I thought branch_pattern: coverity_scan would work. It did not. After renaming my branch to coverity_scan, it worked.



          Also, adding dist: xenial to the .travis.yml file make the certificate errors go away.






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55282442%2ftravis-and-coverity-scan-everything-builds-but-coverity-does-not-seem-to-run%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            My branch was called feature/coverity_scan and I thought branch_pattern: coverity_scan would work. It did not. After renaming my branch to coverity_scan, it worked.



            Also, adding dist: xenial to the .travis.yml file make the certificate errors go away.






            share|improve this answer



























              0














              My branch was called feature/coverity_scan and I thought branch_pattern: coverity_scan would work. It did not. After renaming my branch to coverity_scan, it worked.



              Also, adding dist: xenial to the .travis.yml file make the certificate errors go away.






              share|improve this answer

























                0












                0








                0







                My branch was called feature/coverity_scan and I thought branch_pattern: coverity_scan would work. It did not. After renaming my branch to coverity_scan, it worked.



                Also, adding dist: xenial to the .travis.yml file make the certificate errors go away.






                share|improve this answer













                My branch was called feature/coverity_scan and I thought branch_pattern: coverity_scan would work. It did not. After renaming my branch to coverity_scan, it worked.



                Also, adding dist: xenial to the .travis.yml file make the certificate errors go away.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 22 at 18:40









                sriramsriram

                916




                916





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55282442%2ftravis-and-coverity-scan-everything-builds-but-coverity-does-not-seem-to-run%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

                    155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해