diff options
author | Paul Katsoulakis <34388743+paulkatsoulakis@users.noreply.github.com> | 2019-03-25 10:05:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-25 10:05:05 +0000 |
commit | 8f6b2bba3e0d82b27b26b7da1022e49fe9e09482 (patch) | |
tree | 9c8412a14a5dcc179f15f4db9ea23186091cc2f8 /.travis.yml | |
parent | 9c807630ea5e10144892a5bfc5379b36c2a63e8d (diff) |
Integrity testing: Check published kickstart files integrity (#5689)
* netdata/packaging/ci: Integrity testing
Introduce a scriptlet that validates kickstart integrity in my-netdata.io against the ones in the repo.
Run this through the pipeline on a scheduled manner.
Will refine the conditionals later, once i verify the stage is built up as expected
* netdata/packaging/ci: remove conditionals first
* netdata/packaging/ci: Adjust the names to something more appropriate. Run it along with nightlies
* netdata/packager/ci: Cleanup checksum validation for kickstart files (continued)
1) merge validate_kickstart_integrity.sh and tests/installer/checksums.sh
2) run checksums at the new point on the pipeline
3) Change that unstable gitignore check and use a more file-agnostic check that depends only on git that we already require
4) Do not run the kickstart validation on the online website everywhere, only on the nightly runs
* netdata/packaging/ci: First rounf of PR feedback adjustments
1) changes wordings as recommended
2) pass file info in parameter and use it in the wordings
3) as shellcheck suggests, use -n instead of ! -z. Makes sense actually, ! -z is kind of reverse logic that confuses
More adjustments on a follow up commit
* netdata/packaging/ci: Enable slack integration for kickstart validation
We want to be notified in a timely manner when the kickstart on the website is outdated.
Added a wrapper for incoming webhooks from slack and instead of failing the build we notify slack
Added a debug message in the end of the script to validate the process which i will remove on a follow up commit
* netdata/packaging/ci: fixes
fix sourcing path
missed the /, this new keyboard is a pain :p
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index b2e28ba3a0..5c61b8c0c9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,8 @@ stages: if: branch = master AND type != pull_request AND type != cron - name: nightlies if: branch = master AND type = cron +- name: Integrity testing + if: branch = master AND type = cron jobs: include: @@ -25,6 +27,7 @@ jobs: script: shellcheck --format=gcc $(find . -name '*.sh.in' -not -iwholename '*.git*') - name: check checksums for kickstart files script: ./tests/installer/checksums.sh + env: LOCAL_ONLY="true" - name: coverity install: sudo apt-get install -y zlib1g-dev uuid-dev libipmimonitoring-dev libmnl-dev libnetfilter-acct-dev script: ./coverity-install.sh && ./coverity-scan.sh || echo "Coverity failed :(" @@ -81,6 +84,11 @@ jobs: skip_cleanup: true local_dir: "artifacts" after_deploy: rm -f .travis/gcs-credentials.json + + - stage: Integrity testing + name: Kickstart files integrity testing + script: ./tests/installer/checksums.sh + notifications: webhooks: https://app.fossa.io/hooks/travisci slack: |