-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature: Introducing a nix flake for distribution
Changes: - Nix flake, which makes it easier to distribute the coverage scope.
- Loading branch information
1 parent
ee2e078
commit dda18ba
Showing
8 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
# Coverage reports | ||
cobertura.xml | ||
tarpaulin-report.html | ||
|
||
# Nix | ||
result |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
[package] | ||
name = "coverage_scope" | ||
version = "0.1.0" | ||
version = "0.5.1" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
chrono = "0.4.24" | ||
clap = { version = "4.2.7", features = ["derive"] } | ||
lcov2cobertura = "1.0.1" | ||
mockall = "0.11.4" | ||
serde = { version = "1.0.130", features = ["derive"]} | ||
serde = { version = "1.0.130", features = ["derive"] } | ||
serde-xml-rs = "0.6.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
let | ||
cargoToml = builtins.fromTOML (builtins.readFile ./Cargo.toml); | ||
version = cargoToml.package.version; | ||
in | ||
{ pkgs ? import <nixpkgs> {} }: | ||
|
||
pkgs.rustPlatform.buildRustPackage rec { | ||
pname = "coverage-scope"; | ||
inherit version; | ||
cargoLock.lockFile = ./Cargo.lock; | ||
src = pkgs.lib.cleanSource ./.; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
description = "Coverage scope helping in CI flows for change coverage quality gating"; | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; | ||
}; | ||
outputs = { self, nixpkgs }: | ||
let | ||
supportedSystems = [ "x86_64-linux" "aarch64-darwin" ]; | ||
forAllSystems = nixpkgs.lib.genAttrs supportedSystems; | ||
pkgsFor = nixpkgs.legacyPackages; | ||
in { | ||
packages = forAllSystems (system: { | ||
default = pkgsFor.${system}.callPackage ./. { }; | ||
}); | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters