[Git][NTPsec/ntpsec][master] Add Gitlab CI job for coverity scans

Matt Selsky gitlab at mg.gitlab.com
Tue Jul 31 02:32:14 UTC 2018


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
aa4ac90a by Matt Selsky at 2018-07-31T02:20:07Z
Add Gitlab CI job for coverity scans

This job will only run via the scheduler; all other jobs will not run via the
scheduler.

- - - - -


1 changed file:

- .gitlab-ci.yml


Changes:

=====================================
.gitlab-ci.yml
=====================================
@@ -1,6 +1,8 @@
 pages:
   stage: build
   image: alpine
+  except:
+    - schedules
   script:
     - apk update && apk add gcc bison musl-dev openssl-dev libcap-dev python2-dev asciidoc findutils gzip
     - python ./waf configure --enable-doc --prefix=/tmp/docbot-local --htmldir=`pwd`/public/latest/ build install
@@ -35,6 +37,8 @@ pages:
 
 .job_template: &job_definition
   stage: build
+  except:
+    - schedules
   artifacts:
     expire_in: 7d
     paths:
@@ -536,3 +540,19 @@ gentoo-hardened-refclocks:
     - python ./waf configure --refclock=all build
   tags:
     - gitlab-org
+
+coverity-scan:
+  script:
+    - ./waf configure
+    - /opt/cov-analysis/bin/cov-build --dir cov-int ./waf build
+    - tar czf ntpsec_coverity.tgz cov-int
+    - curl --form token=${COVERITY_TOKEN} \
+           --form email=security at ntpsec.org \
+           --form file=@ntpsec_coverity.tgz \
+           --form version="$(git rev-parse --short HEAD)" \
+           --form description="Automatic submission by gitlab-ci" \
+      https://scan.coverity.com/builds?project=ntpsec
+  tags:
+    - ubuntu-1604-lts
+  only:
+    - schedules



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/aa4ac90a93cccf453be5fd814a8123fa9ed2baf2

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/aa4ac90a93cccf453be5fd814a8123fa9ed2baf2
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20180731/963956df/attachment-0001.html>


More information about the vc mailing list