File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
2325bash -c ' <(curl -s https://codecov.io/bash)'
You can’t perform that action at this time.
0 commit comments