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

                    How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

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

                    Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?