summaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorAndrew Moss <1043609+amoss@users.noreply.github.com>2019-11-14 16:49:19 +0100
committerGitHub <noreply@github.com>2019-11-14 16:49:19 +0100
commitac90f27a580aad0c4d20c5354657b34e5ceed29e (patch)
tree88667d78592d86a1392466b909e42fec32953025 /.travis.yml
parent0d985568013377c332a7574fd2935339b583d9d4 (diff)
Updating the Travis pipeline (issue 7189) (#7312)
Added a linting pass. This is non-blocking but will output a measure of how much each .c and .h file deviates from our current .clang format. Changed the standard build to include all of the warning that we are using in dev. Added the dependencies for dbengine and confirmed that the standard build enables dbengine. Fixed the original warnings.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml
index 9d983645cf..99eadf4eda 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,7 +16,7 @@ before_install:
# Install dependencies for all, once
#
install:
- - sudo apt-get install -y libcap2-bin zlib1g-dev uuid-dev fakeroot libipmimonitoring-dev libmnl-dev libnetfilter-acct-dev gnupg python-pip
+ - sudo apt-get install -y libuv1-dev liblz4-dev libjudy-dev libcap2-bin zlib1g-dev uuid-dev fakeroot libipmimonitoring-dev libmnl-dev libnetfilter-acct-dev gnupg python-pip
- sudo apt install -y --only-upgrade docker-ce
- sudo pip install git-semver==0.2.4 # 11/Sep/2019: git-semver tip was broken, so we had to force last good run of it
- docker info
@@ -104,6 +104,10 @@ jobs:
name: Run shellchecking on BASH
script: shellcheck --format=gcc $(find . -name '*.sh.in' -not -iwholename '*.git*')
+ # Check if any of the C code deviates from our coding style
+ - name: Check coding style
+ script: .travis/clangformat.sh
+
# This falls under same stage defined earlier
- name: Run checksum checks on kickstart files
script: ./tests/installer/checksums.sh
@@ -120,7 +124,7 @@ jobs:
name: Standard netdata build
script: fakeroot ./netdata-installer.sh --install $HOME --dont-wait --dont-start-it --enable-plugin-nfacct --enable-plugin-freeipmi --disable-lto
- env: CFLAGS='-O1 -DNETDATA_INTERNAL_CHECKS=1 -DNETDATA_VERIFY_LOCKS=1'
+ env: CFLAGS='-O1 -Wall -Wextra -Wformat-signedness -fstack-protector-all -DNETDATA_INTERNAL_CHECKS=1 -D_FORTIFY_SOURCE=2 -DNETDATA_VERIFY_LOCKS=1'
after_failure: post_message "TRAVIS_MESSAGE" "<!here> standard netdata build is failing (Still dont know which one, will improve soon)"
- name: Docker container build process (alpine installation)