]> www.infradead.org Git - users/hch/blktests.git/commitdiff
travis: run make check
authorOmar Sandoval <osandov@fb.com>
Wed, 13 Feb 2019 20:05:51 +0000 (12:05 -0800)
committerOmar Sandoval <osandov@fb.com>
Wed, 13 Feb 2019 20:44:30 +0000 (12:44 -0800)
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 <osandov@fb.com>
.travis.yml

index 4f5e003a504ecbb61c90c2bc4a7b4fcb1e90685d..acc1598fb7e300bbd2ab9ce43e23897b6035bc73 100644 (file)
@@ -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