Skip to content

Commit 8728a7a

Browse files
author
Jacob Rakidzich
committed
trying another thing
1 parent 163addb commit 8728a7a

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

cov.sh

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
11
#!/bin/sh
2-
# brew ls --versions llvm
3-
# if [[ $? != 0 ]]; then
4-
# brew install llvm
5-
# fi
2+
brew ls --versions llvm
63

7-
# BIN_PATH="$(swift build --show-bin-path)"
8-
# XCTEST_PATH="$(find ${BIN_PATH} -name '*.xctest')"
4+
if [[ $? != 0 ]]; then
5+
brew install llvm
6+
fi
97

10-
# COV_BIN=$XCTEST_PATH
11-
# if [[ "$OSTYPE" == "darwin"* ]]; then
12-
# f="$(basename $XCTEST_PATH .xctest)"
13-
# COV_BIN="${COV_BIN}/Contents/MacOS/$f"
14-
# fi
8+
echo 'export PATH="/usr/local/opt/llvm/bin:$PATH"' >> ~/.zshrc
9+
BIN_PATH="$(swift build --show-bin-path)"
10+
XCTEST_PATH="$(find ${BIN_PATH} -name '*.xctest')"
1511

16-
# llvm-cov report \
17-
# "${COV_BIN}" \
18-
# -instr-profile=.build/debug/codecov/default.profdata \
19-
# -ignore-filename-regex=".build|Tests" \
20-
# -use-color
12+
COV_BIN=$XCTEST_PATH
13+
if [[ "$OSTYPE" == "darwin"* ]]; then
14+
f="$(basename $XCTEST_PATH .xctest)"
15+
COV_BIN="${COV_BIN}/Contents/MacOS/$f"
16+
fi
17+
18+
llvm-cov report \
19+
"${COV_BIN}" \
20+
-instr-profile=.build/debug/codecov/default.profdata \
21+
-ignore-filename-regex=".build|Tests" \
22+
-use-color
2123

2224

2325
bash -c '<(curl -s https://codecov.io/bash)'

0 commit comments

Comments
 (0)