Skip to content

Commit

Permalink
feat: Use codecov in drone ci with nix
Browse files Browse the repository at this point in the history
  • Loading branch information
uttarayan21 committed May 17, 2024
1 parent c5359ac commit 503d49e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
15 changes: 7 additions & 8 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ type: docker
name: default

steps:
- name: Build & Test
image: rust:latest
- name: Checks
image: nixos/nix:master
commands:
- cargo build
- cargo test
- name: Bench
image: rust:latest
commands:
- cargo bench
- nix flake check
- nix build .#checks.x86_64-linux.ansi-to-tui-llvm-coverage
- name: upload-codecov
image: robertstettner/drone-codecov
files: result
3 changes: 1 addition & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@
partitionType = "count";
});
}
// lib.optionalAttrs (!pkgs.stdenv.isDarwin) rec {
# default = ansi-to-tui-llvm-coverage;
// lib.optionalAttrs (!pkgs.stdenv.isDarwin) {
ansi-to-tui-llvm-coverage = craneLibLLvmTools.cargoLlvmCov (commonArgs
// {
inherit cargoArtifacts;
Expand Down

0 comments on commit 503d49e

Please sign in to comment.