summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Mills <prologic@shortcircuit.net.au>2020-03-10 08:26:50 +1000
committerGitHub <noreply@github.com>2020-03-10 08:26:50 +1000
commite1528f6a9c5afd56b19a456469ed52deea7ef9bb (patch)
tree478d58feb0f951cfe89518a186c6c7bfb046ab63
parentff4eb9c8cbb0a614f6573209cd5b097662d0c490 (diff)
Migrate coverity-scan to Github Actions (#8321)
* Migrate coverity-scan to Github Actions * Move to job conditional and use local install-required-pacakges.sh * Add COVERITY_* secrets and add them to the Github secrets store with values from Travis copied over
-rw-r--r--.github/workflows/coverity.yml24
-rw-r--r--.travis.yml9
2 files changed, 24 insertions, 9 deletions
diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml
new file mode 100644
index 0000000000..1f84640cdc
--- /dev/null
+++ b/.github/workflows/coverity.yml
@@ -0,0 +1,24 @@
+---
+# Runs coverity-scan.sh every 24h on `master`
+name: Coverity Scan
+on:
+ schedule:
+ - cron: '0 1 * * *'
+jobs:
+ coverity:
+ if: github.repository == 'netdata/netdata'
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Prepare environment
+ run: |
+ ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata
+ sudo apt-get install -y libjson-c-dev libipmimonitoring-dev libcups2-dev libsnappy-dev \
+ libprotobuf-dev libprotoc-dev libssl-dev protobuf-compiler
+ - name: Run coverity-scan
+ env:
+ COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
+ COVERITY_SCAN_SUBMIT_MAIL: ${{ secrets.COVERITY_SCAN_SUBMIT_MAIL }}
+ run: |
+ ./coverity-scan.sh --with-install
diff --git a/.travis.yml b/.travis.yml
index aaf79e241d..2500bc3699 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -451,15 +451,6 @@ jobs:
# This is the nightly pre-execution step (Jobs, preparatory steps for nightly, etc)
- stage: Nightly operations
- name: Run coverity scan
- before_script:
- - bash <(curl -sS https://raw.githubusercontent.com/netdata/netdata/master/packaging/installer/install-required-packages.sh) --dont-wait --non-interactive netdata
- - sudo apt-get install -y libjson-c-dev libipmimonitoring-dev libcups2-dev libsnappy-dev libprotobuf-dev libprotoc-dev libssl-dev protobuf-compiler
- script: ./coverity-scan.sh --with-install
- after_failure: post_message "TRAVIS_MESSAGE" "<!here> Coverity nightly run has failed" "${NOTIF_CHANNEL}"
- env:
- - ALLOW_SOFT_FAILURE_HERE=true
-
- name: Kickstart files integrity testing (extended)
script: ./tests/installer/checksums.sh