Skip to content

Commit

Permalink
Release 0.18.3
Browse files Browse the repository at this point in the history
  • Loading branch information
xd009642 committed Oct 24, 2021
2 parents 58f22f6 + c2b86b6 commit d184c33
Show file tree
Hide file tree
Showing 40 changed files with 785 additions and 176 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: docker
on:
push:
branches:
- develop
schedule:
- cron: '0 0 * * 0'
jobs:
build_images:
runs-on: ubuntu-latest
strategy:
matrix:
image: ['', '-slim', '-nightly', '-nightly-slim']
branch: ['master', 'develop']
steps:
- uses: actions/checkout@v2
with:
ref: ${{ matrix.branch }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: build_image
run: |
if [[ "${{ matrix.branch }}" = "master" ]]; then
export NAME="latest"
else
export NAME="${{ matrix.branch }}"
fi \
&& docker build -t xd009642/tarpaulin:$NAME${{ matrix.image }} -f Dockerfile${{ matrix.image}} . \
&& docker push xd009642/tarpaulin:$NAME${{ matrix.image }} \
- uses: oprypin/find-latest-tag@v1
id: tarpaulin
with:
repository: xd009642/tarpaulin
releases-only: true
if: matrix.branch == 'master'
- name: checkout_last_release
uses: actions/checkout@v2
with:
ref: ${{ steps.tarpaulin.outputs.tag }}
if: matrix.branch == 'master'
- name: build_last_release
run: |
docker build -t xd009642/tarpaulin:${{ steps.tarpaulin.outputs.tag }}${{ matrix.image }} -f Dockerfile${{ matrix.image}} . \
&& docker push xd009642/tarpaulin:${{ steps.tarpaulin.outputs.tag }}${{ matrix.image }} \
if: matrix.branch == 'master'
7 changes: 0 additions & 7 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@ jobs:
if: matrix.version == 'nightly'
- name: check formatting
run: cargo fmt -- --check
- name: notify docker hub
run: |
curl --request POST \
--header 'Content-Type: application/json' \
--data '{"build": true}' \
https://registry.hub.docker.com/u/xd009642/tarpaulin/trigger/${{ secrets.DOCKER_TOKEN }}/
if: github.ref == 'ref/heads/master' || github.ref == 'refs/heads/develop'
windows:
runs-on: windows-latest
strategy:
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,27 @@
From 2019 onwards, all notable changes to tarpaulin will be documented in this
file.

## [Unreleased]
### Added
- Added support for doctest `no_run` attribute
- Add support for source filter via inner attributes

### Changed
- [INTERNAL] Made link-dead-code apply for non-windows llvm instrumentation builds
- Consolidate fn/impl-fn/trait-fn source analysis to use same implementation for consistency
- Add check to make sure a `DirEntry` with a .rs extension is actually a file and not a directory fixes #857
- Make `path_utils`, `source_analysis` and `statemachine` public modules
- Add fork child to PID map to fix #790

### Removed

## [0.18.2] 2021-09-05
### Added

### Changed
- Fix #819 incorrect handling of test args caused by removing the executable path as first program arg in execve
- Now factor in try and return blocks in reachability calculation
- Remove erroneous filtering of function calls that take a single line with arguments present

### Removed

Expand Down
54 changes: 27 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "cargo-tarpaulin"
version = "0.18.2"
version = "0.18.3"
authors = ["Daniel McKenna <[email protected]>"]
description = "Cargo-Tarpaulin is a tool to determine code coverage achieved via tests"
repository = "https://github.com/xd009642/tarpaulin"
Expand Down Expand Up @@ -31,7 +31,7 @@ humantime-serde = "1"
indexmap = { version = "1.7.0", features = ["serde-1"] }
lazy_static = "1.0"
tracing = { version = "0.1", default-features = false }
tracing-subscriber = {version = "0.2.20", default-features = false, features = ["env-filter", "fmt", "chrono", "ansi", "smallvec", "tracing-log"]}
tracing-subscriber = {version = "0.2.25", default-features = false, features = ["env-filter", "fmt", "chrono", "ansi", "smallvec", "tracing-log"]}
memmap = "0.7.0"
object = "0.24"
proc-macro2 = { version = "1.0", features = ["span-locations"] }
Expand All @@ -48,12 +48,17 @@ cfg-if = "1.0.0"

[target.'cfg(target_os = "linux")'.dependencies]
libc = "0.2.94"
nix = "0.22.1"
procfs = "0.10"
nix = "0.23.0"
procfs = "0.11"

[features]
default = []
vendored-openssl = ["git2/vendored-openssl"]

[build-dependencies]
rustc_version = "0.4"

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/{ version }/cargo-tarpaulin-{ version }-travis.tar.gz"
bin-dir = "cargo-tarpaulin"
pkg-fmt = "tgz"
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Below is the help-text for a thorough explanation of the flags and features
available:

```
cargo-tarpaulin version: 0.18.2
cargo-tarpaulin version: 0.18.3
Tool to analyse test coverage of cargo projects
USAGE:
Expand Down Expand Up @@ -159,6 +159,12 @@ installation and massively reducing the install time on CI.
When using the [Nix](https://nixos.org/nix) package manager, the `nixpkgs.cargo-tarpaulin` package can be used.
This ensures that tarpaulin will be built with the same rust version as the rest of your packages.

You can also use [cargo-binstall](https://github.com/ryankurte/cargo-binstall):

```text
cargo binstall cargo-tarpaulin
```

### Environment Variables

When tarpaulin runs your tests it strives to run them in the same environment as if they were ran via cargo test.
Expand Down Expand Up @@ -260,7 +266,11 @@ my crate [keygraph-rs](https://github.com/xd009642/keygraph-rs).

Before tarpaulin 0.13.4 you could ignore code in blocks with
`#[cfg_attr(tarpaulin, skip)]` this has changed with 0.13.4 and onwards
and the new instructions are described below.
and the new instructions are described below. If you get compiler errors
mentioning unknown attribute skip use the `--avoid-cfg-tarpaulin` flag, this
affects a small number of users as it wasn't a largely adopted feature so also
look to updating your code or seeing if any of your dependencies are out of
date.

Tarpaulin allows you to ignore modules or functions using attributes.
Below is an example of ignoring the main function in a project:
Expand Down Expand Up @@ -419,7 +429,7 @@ jobs:
cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml
- name: Upload to codecov.io
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
with:
# token: ${{secrets.CODECOV_TOKEN}} # not required for public repos
fail_ci_if_error: true
Expand Down
Loading

0 comments on commit d184c33

Please sign in to comment.