Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
test: enable tests on rockcraft package (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk authored Jan 15, 2024
1 parent b436b0c commit 28b4769
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions apps/rockcraft/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,19 @@ pkgs.python3Packages.buildPythonApplication {

env.SETUPTOOLS_SCM_PRETEND_VERSION = version;

# TODO: Try to make the tests pass and remove this.
doCheck = false;
preCheck = ''
mkdir -p check-phase
export HOME=$(pwd)/check-phase
'';

nativeCheckInputs = with pkgs.python3Packages; [
pytest-check
pytest-mock
pytest-subprocess
pytestCheckHook
] ++ (with pkgs; [
dpkg
]);

meta = {
description = "Tool to create OCI Images using the language from Snapcraft and Charmcraft.";
Expand Down

0 comments on commit 28b4769

Please sign in to comment.