File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
1
Pod ::Spec . new do |spec |
2
2
spec . name = 'XcodeCoverage'
3
3
spec . summary = 'Code coverage for Xcode projects'
4
- spec . version = '1.0.1 '
4
+ spec . version = '1.0.2 '
5
5
spec . platform = :ios
6
6
spec . ios . deployment_target = '6.0'
7
7
spec . authors = { 'Jon Reid' => '[email protected] ' }
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
1
2
#
2
3
# Copyright 2014 Jonathan M. Reid. See LICENSE.txt
3
4
# Created by: Jon Reid, http://qualitycoding.org/
7
8
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
8
9
ENV_DIR=" ${DIR} "
9
10
10
- if [[ $DIR == * Pods/XcodeCoverage* ]]
11
+ if [[ " $DIR " == * Pods/XcodeCoverage* ]]
11
12
then
12
13
echo " Using Cocoapods!"
13
- cd ${DIR}
14
+ cd " ${DIR} "
14
15
cd ..
15
16
cd ..
16
17
17
18
# The env.sh file will be in the project root.
18
19
ENV_DIR=" $( pwd) "
19
20
fi
20
21
21
- source ${ENV_DIR} /env.sh
22
+ source " ${ENV_DIR} /env.sh"
22
23
23
24
# Change the report name if you like:
24
25
LCOV_INFO=Coverage.info
25
26
26
27
XCODECOVERAGE_PATH=" ${SRCROOT} /XcodeCoverage"
27
28
28
- if [[ $DIR == * Pods/XcodeCoverage* ]]
29
+ if [[ " $DIR " == * Pods/XcodeCoverage* ]]
29
30
then
30
31
echo " Using Cocoapods!"
31
32
# The current directory will be where XcodeCoverage is living, not in SRCROOT
32
33
XCODECOVERAGE_PATH=" ${DIR} "
33
34
fi
34
35
35
36
LCOV_PATH=" ${XCODECOVERAGE_PATH} /lcov-1.11/bin"
36
- OBJ_DIR=${OBJECT_FILE_DIR_normal} /${CURRENT_ARCH}
37
+ OBJ_DIR=" ${OBJECT_FILE_DIR_normal} /${CURRENT_ARCH} "
37
38
38
39
# Fix for the new LLVM-COV that requires gcov to have a -v paramter
39
40
LCOV () {
40
- ${LCOV_PATH} /lcov " $@ " --gcov-tool ${XCODECOVERAGE_PATH} /llvm-cov-wrapper.sh
41
+ " ${LCOV_PATH} /lcov" " $@ " --gcov-tool " ${XCODECOVERAGE_PATH} /llvm-cov-wrapper.sh"
41
42
}
Original file line number Diff line number Diff line change 6
6
#
7
7
8
8
DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
9
- source ${DIR} /envcov.sh
9
+ source " ${DIR} /envcov.sh"
10
10
11
11
remove_old_report ()
12
12
{
Original file line number Diff line number Diff line change @@ -1898,7 +1898,7 @@ sub get_gcov_version()
1898
1898
my $version_string ;
1899
1899
my $result ;
1900
1900
1901
- open (GCOV_PIPE, " -|" , " $gcov_tool --version" )
1901
+ open (GCOV_PIPE, " -|" , " \" $gcov_tool \" --version" )
1902
1902
or die (" ERROR: cannot retrieve gcov version!\n " );
1903
1903
$version_string = <GCOV_PIPE>;
1904
1904
# LLVM gcov keeps version information on the second line.
You can’t perform that action at this time.
0 commit comments