Only check syntax when triggered by gerrit

Change-Id: I6d1b040ea2b6128d5c1e0ca00558d138c0492e33
1 file changed