File tree Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Expand file tree Collapse file tree 2 files changed +15
-8
lines changed Original file line number Diff line number Diff line change 6
6
- LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so
7
7
- SEGFAULT_SIGNALS=all
8
8
- WORKSPACE=$TRAVIS_BUILD_DIR
9
- addons :
10
- apt :
11
- packages :
12
- - libboost-all-dev
13
- - libssl-dev
14
- - libcurl4-openssl-dev
15
9
matrix :
16
10
- compiler : gcc
17
11
cache : ccache
18
12
env : BUILD_TYPE=COVERAGE WORKSPACE=$TRAVIS_BUILD_DIR
19
13
name : Linux Build using gcc & tests & code coverage
20
- script : $WORKSPACE/scripts/misc/cpplint_ci.sh && $WORKSPACE/scripts/linux/psv/build_psv.sh && $WORKSPACE/scripts/linux/psv/travis_test_psv.sh
14
+ script : $WORKSPACE/scripts/linux/psv/build_psv.sh && $WORKSPACE/scripts/linux/psv/travis_test_psv.sh
15
+ addons :
16
+ apt :
17
+ packages :
18
+ - libboost-all-dev
19
+ - libssl-dev
20
+ - libcurl4-openssl-dev
21
+ - language : minimal
22
+ name : " C++ Lint checker script"
23
+ script : $WORKSPACE/scripts/misc/cpplint_ci.sh
24
+ if : type = pull_request
21
25
branches :
22
26
only :
23
27
- master
28
+
Original file line number Diff line number Diff line change 1
- #! /bin/bash +e
1
+ #! /bin/bash -ex
2
2
#
3
3
# Copyright (C) 2020 HERE Europe B.V.
4
4
#
31
31
printf " Currently in %s branch. Running cpplint.\n" " $CURRENT_BRANCH "
32
32
fi
33
33
34
+ set +e
34
35
# Get affected files and filter source files
35
36
FILES=$( git diff-tree --no-commit-id --name-only -r master " $CURRENT_BRANCH " \
36
37
| grep ' \.c\|\.cpp\|\.cxx\|\.h\|\.hpp\|\.hxx' )
38
+ set -e
37
39
38
40
if [ -z " $FILES " ]; then
39
41
printf " No affected files, exiting.\n"
You can’t perform that action at this time.
0 commit comments