]> git.sur5r.net Git - i3/i3/blobdiff - .travis.yml
travis: call git fetch --unshallow, so that git describe works
[i3/i3] / .travis.yml
index c4d221ae057fe421bc05c6b37c213bc85e3e834a..6d788926e10f8b0af096b83c11b5e19da59a3f12 100644 (file)
@@ -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)