Skip to content

Commit

Permalink
fix(ci): disable running coverage in parallel
Browse files Browse the repository at this point in the history
Running in parallel will crash a circle ci node. Disabling until we can
build in some safeguards.
  • Loading branch information
adamreese committed Aug 10, 2016
1 parent 1b15275 commit 7ef5751
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions scripts/coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,9 @@ generate_cover_data() {
(
local output="${coverdir}/${d//\//-}.cover"
go test -coverprofile="${output}" -covermode="$covermode" "$d"
) &
)
done

local fails
fails=0
for job in $(jobs -p); do
wait "${job}" || let "fails+=1"
done
if (( fails != 0 )); then
echo "FAILED"
exit ${fails}
fi

echo "mode: $covermode" >"$profile"
grep -h -v "^mode:" "$coverdir"/*.cover >>"$profile"
}
Expand Down

0 comments on commit 7ef5751

Please sign in to comment.