This repository was archived by the owner on Jun 3, 2024. It is now read-only.
File tree 2 files changed +15
-14
lines changed
2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 7
7
fi
8
8
9
9
# Create a test repo which we can use for the online::push tests
10
- mkdir $HOME /_temp
11
- git init --bare $HOME /_temp/test.git
12
- git daemon --listen=localhost --export-all --enable=receive-pack --base-path=$HOME /_temp $HOME /_temp 2> /dev/null &
10
+ mkdir " $HOME " /_temp
11
+ git init --bare " $HOME " /_temp/test.git
12
+ git daemon --listen=localhost --export-all --enable=receive-pack --base-path=" $HOME " /_temp " $HOME " /_temp 2> /dev/null &
13
13
export GITTEST_REMOTE_URL=" git://localhost/test.git"
14
14
15
15
mkdir _build
16
16
cd _build
17
+ # shellcheck disable=SC2086
17
18
cmake .. -DCMAKE_INSTALL_PREFIX=../_install $OPTIONS || exit $?
18
19
make -j2 install || exit $?
19
20
ctest -V . || exit $?
Original file line number Diff line number Diff line change 13
13
fi
14
14
15
15
COV_VERSION=6.6.1
16
- case ` uname -m` in
16
+ case $( uname -m) in
17
17
i? 86) BITS=32 ;;
18
18
amd64|x86_64) BITS=64 ;;
19
19
esac
20
20
SCAN_TOOL=https://scan.coverity.com/download/linux-${BITS}
21
- TOOL_BASE=` pwd` /_coverity-scan
21
+ TOOL_BASE=$( pwd) /_coverity-scan
22
22
23
23
# Install coverity tools
24
- if [ ! -d $TOOL_BASE ]; then
24
+ if [ ! -d " $TOOL_BASE " ]; then
25
25
echo " Downloading coverity..."
26
- mkdir -p $TOOL_BASE
27
- cd $TOOL_BASE
26
+ mkdir -p " $TOOL_BASE "
27
+ pushd " $TOOL_BASE "
28
28
wget -O coverity_tool.tgz $SCAN_TOOL \
29
29
--post-data " project=libgit2&token=$COVERITY_TOKEN "
30
30
tar xzf coverity_tool.tgz
31
- cd ..
32
- TOOL_DIR=` find $TOOL_BASE -type d -name ' cov-analysis*' `
33
- ln -s $TOOL_DIR $TOOL_BASE /cov-analysis
31
+ popd
32
+ TOOL_DIR=$( find " $TOOL_BASE " -type d -name ' cov-analysis*' )
33
+ ln -s " $TOOL_DIR " " $TOOL_BASE " /cov-analysis
34
34
fi
35
35
36
36
COV_BUILD=" $TOOL_BASE /cov-analysis/bin/cov-build"
@@ -46,12 +46,12 @@ COVERITY_UNSUPPORTED=1 \
46
46
47
47
# Upload results
48
48
tar czf libgit2.tgz cov-int
49
- SHA=` git rev-parse --short HEAD`
49
+ SHA=$( git rev-parse --short HEAD)
50
50
curl \
51
51
--form project=libgit2 \
52
- --form token=$COVERITY_TOKEN \
52
+ --form token=" $COVERITY_TOKEN " \
53
53
54
54
55
- --form version=$SHA \
55
+ --form version=" $SHA " \
56
56
--form description=" Travis build" \
57
57
http://scan5.coverity.com/cgi-bin/upload.py
You can’t perform that action at this time.
0 commit comments