tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
git-interactive-rebase-tool: actually run tests
Maximilian Bosch
2 years ago
8f4b2944
e0536cfd
+12
-10
1 changed file
expand all
collapse all
unified
split
pkgs
applications
version-management
git-interactive-rebase-tool
default.nix
+12
-10
pkgs/applications/version-management/git-interactive-rebase-tool/default.nix
···
14
14
postPatch = ''
15
15
# unknown lint: `ffi_unwind_calls`
16
16
# note: the `ffi_unwind_calls` lint is unstable
17
17
-
substituteInPlace src/main.rs src/{config,core,display,input,git,runtime,todo_file,view}/src/lib.rs \
17
17
+
substituteInPlace src/main.rs src/{config,core,display,input,git,runtime,todo_file,testutils,view}/src/lib.rs \
18
18
--replace "ffi_unwind_calls," ""
19
19
'';
20
20
···
27
27
28
28
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
29
29
30
30
-
checkFlags = [
31
31
-
"--skip=external_editor::tests::edit_success"
32
32
-
"--skip=external_editor::tests::editor_non_zero_exit"
33
33
-
"--skip=external_editor::tests::empty_edit_abort_rebase"
34
34
-
"--skip=external_editor::tests::empty_edit_error"
35
35
-
"--skip=external_editor::tests::empty_edit_noop"
36
36
-
"--skip=external_editor::tests::empty_edit_re_edit_rebase_file"
37
37
-
"--skip=external_editor::tests::empty_edit_undo_and_edit"
30
30
+
# Compilation during tests fails if this env var is not set.
31
31
+
preCheck = "export GIRT_BUILD_GIT_HASH=${version}";
32
32
+
postCheck = "unset GIRT_BUILD_GIT_HASH";
33
33
+
cargoTestFlags = [
34
34
+
"--workspace"
35
35
+
# build everything except for doctests which are currently broken because
36
36
+
# `config::lib` expects the sourcetree to be a git repo.
37
37
+
"--tests"
38
38
+
"--lib"
39
39
+
"--bins"
38
40
];
39
41
40
42
meta = with lib; {
···
42
44
description = "Native cross platform full feature terminal based sequence editor for git interactive rebase";
43
45
changelog = "https://github.com/MitMaro/git-interactive-rebase-tool/releases/tag/${version}";
44
46
license = licenses.mit;
45
45
-
maintainers = with maintainers; [ SuperSandro2000 zowoq ];
47
47
+
maintainers = with maintainers; [ SuperSandro2000 zowoq ma27 ];
46
48
mainProgram = "interactive-rebase-tool";
47
49
};
48
50
}