1
0
forked from 0ad/0ad
0ad/build/jenkins/lint-patch.sh
Itms 7e0d19cd7a Linting with Coala.
This new script and the associated configuration files lint our source
code (JS and C++). This will be extended in the future, refs #4833.

Reviewed By: Imarok
Differential Revision: https://code.wildfiregames.com/D213
This was SVN commit r20364.
2017-10-28 15:30:37 +00:00

13 lines
315 B
Bash
Executable File

#!/bin/sh
# Lint errors should not count as build failures
set +e
set -v
# Move to the root of the repository (this script is in build/jenkins/)
cd "$(dirname $0)"/../../
arc patch --diff "$DIFF_ID" --force
svn st | grep '^[AM]' | cut -c 9- | xargs coala --ci --flush-cache --limit-files > .phabricator-comment