File tree Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Expand file tree Collapse file tree 4 files changed +22
-2
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,16 @@ skip_good_tree () {
67
67
exit 0
68
68
}
69
69
70
+ check_unignored_build_artifacts ()
71
+ {
72
+ ! git ls-files --other --exclude-standard --error-unmatch \
73
+ -- ' :/*' 2> /dev/null ||
74
+ {
75
+ echo " $( tput setaf 1) error: found unignored build artifacts$( tput sgr0) "
76
+ false
77
+ }
78
+ }
79
+
70
80
# Set 'exit on error' for all CI scripts to let the caller know that
71
81
# something went wrong.
72
82
# Set tracing executed commands, primarily setting environment variables
@@ -99,8 +109,8 @@ linux-clang|linux-gcc)
99
109
export LINUX_P4_VERSION=" 16.2"
100
110
export LINUX_GIT_LFS_VERSION=" 1.5.2"
101
111
102
- P4_PATH=" $( pwd ) /custom/p4"
103
- GIT_LFS_PATH=" $( pwd ) /custom/git-lfs"
112
+ P4_PATH=" $HOME /custom/p4"
113
+ GIT_LFS_PATH=" $HOME /custom/git-lfs"
104
114
export PATH=" $GIT_LFS_PATH :$P4_PATH :$PATH "
105
115
;;
106
116
osx-clang|osx-gcc)
Original file line number Diff line number Diff line change @@ -23,4 +23,6 @@ docker run \
23
23
daald/ubuntu32:xenial \
24
24
/usr/src/git/ci/run-linux32-build.sh $( id -u $USER )
25
25
26
+ check_unignored_build_artifacts
27
+
26
28
save_good_tree
Original file line number Diff line number Diff line change 8
8
ln -s $HOME /travis-cache/.prove t/.prove
9
9
make --quiet test
10
10
11
+ check_unignored_build_artifacts
12
+
11
13
save_good_tree
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ test -s Documentation/git.xml
18
18
test -s Documentation/git.1
19
19
grep ' <meta name="generator" content="AsciiDoc ' Documentation/git.html
20
20
21
+ rm -f stdout.log stderr.log
22
+ check_unignored_build_artifacts
23
+
21
24
# Build docs with AsciiDoctor
22
25
make clean
23
26
make --jobs=2 USE_ASCIIDOCTOR=1 doc > >( tee stdout.log) 2> >( tee stderr.log >&2 )
@@ -26,4 +29,7 @@ sed '/^GIT_VERSION = / d' stderr.log
26
29
test -s Documentation/git.html
27
30
grep ' <meta name="generator" content="Asciidoctor ' Documentation/git.html
28
31
32
+ rm -f stdout.log stderr.log
33
+ check_unignored_build_artifacts
34
+
29
35
save_good_tree
You can’t perform that action at this time.
0 commit comments