From 612c0c037cd0333471608f6b038b76ace7238acb Mon Sep 17 00:00:00 2001 From: b1f6c1c4 Date: Fri, 23 Jun 2023 22:27:48 -0400 Subject: [PATCH] ci and coveralls --- Makefile | 2 +- README.md | 3 ++- appveyor.yml | 16 ++++++++++++++-- run-test | 4 ++-- 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index b7abac4..3e02c4b 100644 --- a/Makefile +++ b/Makefile @@ -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 "$@")" diff --git a/README.md b/README.md index 1498fff..b247226 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/appveyor.yml b/appveyor.yml index 4c4e1c0..b1ecf9a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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: - @@ -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 diff --git a/run-test b/run-test index de24870..95ea3b2 100755 --- a/run-test +++ b/run-test @@ -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