Skip to content

Commit

Permalink
ci and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
b1f6c1c4 committed Jun 24, 2023
1 parent 33f0dda commit 612c0c0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ test: $(REPORTS)
cover: coverage/merged/index.html

coverage/merged/index.html: $(COVERAGES)
kcov --merge coverage/merged $^
kcov --coveralls-id=$(COVERALLS_REPO_TOKEN) --merge coverage/merged $^

report/%: tests/% git-get git-gets
mkdir -p "$$(dirname "$@")"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# `git-get`: Blazingly fast, incredibly handy `git clone`

[![Test Status](https://ci.appveyor.com/api/projects/status/32r7s2skrgm9ubva?svg=true)](https://ci.appveyor.com/project/b1f6c1c4/git-get/branch/master)
[![Appveyor](https://img.shields.io/appveyor/build/b1f6c1c4/git-get?style=flat-square)](https://ci.appveyor.com/project/b1f6c1c4/git-get/build/master)
[![Coveralls](https://img.shields.io/coveralls/github/b1f6c1c4/git-get?style=flat-square)](https://coveralls.io/github/b1f6c1c4/git-get)

[x] Automatic shallow clone
[x] Automatic partial clone
Expand Down
16 changes: 14 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ skip_commits:
message: /\[ci skip\]|\[skip ci\]/

image:
- macos
- Visual Studio 2022
- Ubuntu2004
- Visual Studio 2022
- macos

environment:
MAKEFLAGS: -j8
COVERALLS_REPO_TOKEN:
secure: 8t5ZKdyCWpby/hrKVV5kjvOst7QzfnaW4HKKEh7DKjmxDuwFWdkD8Oizq4Hsoe3N

for:
-
Expand All @@ -23,6 +25,16 @@ for:

install:
- choco install make
-
matrix:
only:
- image: Ubuntu2004

install:
- sudo apt-get update || true
- sudo apt-get install kcov
build_script:
- make cover

before_build:
- make --version
Expand Down
4 changes: 2 additions & 2 deletions run-test
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ else
git-get() {
kcov \
--skip-solibs --collect-only \
"--include-path=$MY/git-get" \
"--include-path=$MY/git-get,$MY/git-gets" \
"$OU" "$MY/git-get" --color=never "$@"
}
git-gets() {
kcov \
--skip-solibs --collect-only \
"--include-path=$MY/git-gets" \
"--include-path=$MY/git-get,$MY/git-gets" \
"$OU" "$MY/git-gets" --color=never "$@"
}
fi
Expand Down

0 comments on commit 612c0c0

Please sign in to comment.