mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Travis: Add check in travis builds that clang-format is a no-op
This commit is contained in:
@@ -27,11 +27,17 @@ matrix:
|
||||
|
||||
# install dependencies
|
||||
install:
|
||||
- sudo add-apt-repository -y -qq 'ppa:ubuntu-toolchain-r/test'
|
||||
- sudo add-apt-repository -y -qq 'deb http://llvm.org/apt/precise/ llvm-toolchain-precise-3.8 main'
|
||||
- curl http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
|
||||
- sudo apt-get update -qq
|
||||
- if [[ "$CODE_BUILD" == "1" ]]; then sudo apt-get install -y -qq libx11-dev mesa-common-dev libgl1-mesa-dev qt5-default libqt5x11extras5-dev libxcb-keysyms1-dev gdb ; fi
|
||||
- if [[ "$DOCS_BUILD" == "1" ]]; then sudo pip install --upgrade pip setuptools ; sudo pip install Sphinx sphinx-rtd-theme ; fi
|
||||
|
||||
script:
|
||||
- clang-format-3.8 -i -style=file $(find pdblocate/ qrenderdoc/ renderdoc/ renderdoccmd/ renderdocshim/ -type f -regex '.*\(/3rdparty/\|/official/\|resource.h\).*' -prune -o -regex '.*\.\(c\|cpp\|h\)$' -print)
|
||||
- git clean -f
|
||||
- test $(git status --porcelain | wc -l) -eq 0 || { git diff; false; }
|
||||
- sh ./hash_version.sh
|
||||
- if [[ "$CODE_BUILD" == "1" ]]; then make ; fi
|
||||
- if [[ "$DOCS_BUILD" == "1" ]]; then cd docs/ && make html ; fi
|
||||
|
||||
Reference in New Issue
Block a user