We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 317ffbb commit 628c66bCopy full SHA for 628c66b
.travis.yml
@@ -40,7 +40,7 @@ matrix:
40
compiler: clang
41
env: COMPILER=clang++
42
- env: NAME="CPP-LINT"
43
- script: scripts/run_lint.sh master HEAD || true
+ script: scripts/travis_lint.sh || true
44
45
script:
46
- if [ -L bin/gcc ] ; then export PATH=$PWD/bin:$PATH ; fi ;
scripts/travis_lint.sh
@@ -0,0 +1,13 @@
1
+#!/bin/bash
2
+
3
+set -e
4
5
+script_folder=`dirname $0`
6
+pip install --user unidiff
7
8
+if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
9
+ $script_folder/run_lint.sh HEAD~1 # Check for errors introduced in last commit
10
+else
11
+ $script_folder/run_lint.sh $TRAVIS_BRANCH # Check for errors compared to merge target
12
+fi
13
0 commit comments