From: Omar Sandoval Date: Wed, 13 Feb 2019 20:05:51 +0000 (-0800) Subject: travis: run make check X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c8b3ad2dd720bf11b0ffef554156956224c66f64;p=users%2Fsagi%2Fblktests.git travis: run make check We want to run shellcheck and the other sanity checks on all pushes. Install the latest stable version of shellcheck, as old versions are known to have false positives. Signed-off-by: Omar Sandoval --- diff --git a/.travis.yml b/.travis.yml index 4f5e003..acc1598 100644 --- a/.travis.yml +++ b/.travis.yml @@ -25,6 +25,8 @@ before_install: - if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt update; sudo apt install -y libc6-dev libc6-dev:i386 'libstdc++-*-dev' 'libstdc++-*-dev:i386' gcc-multilib g++-multilib; + curl -L "https://storage.googleapis.com/shellcheck/shellcheck-stable.linux.x86_64.tar.xz" | tar -xJ; + sudo cp shellcheck-stable/shellcheck /usr/local/bin/; fi - CFLAGS="-Werror" - CXXFLAGS="-Werror" @@ -36,3 +38,4 @@ before_install: script: - make CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" + - make check