From a2b20c8d9a57c636e4bffcfc206402c678abf4ce Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 30 Nov 2015 21:08:00 +0100 Subject: [PATCH] travis: call git fetch --unshallow, so that git describe works --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index c4d221ae..6d788926 100644 --- a/.travis.yml +++ b/.travis.yml @@ -48,6 +48,7 @@ install: - sudo /bin/sh -c 'cpanm -n -v X11::XCB || true' - sudo /bin/sh -c 'cpanm -n -v AnyEvent::I3 || true' script: + - if [ -a .git/shallow ]; then git fetch --unshallow; fi - CFLAGS="-Wformat -Wformat-security -Wextra -Wno-unused-parameter -Werror" make -j - (cd testcases && xvfb-run ./complete-run.pl --parallel=1 || (cat latest/complete-run.log; false)) - clang-format-3.5 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false) -- 2.39.2