diff --git a/.travis.yml b/.travis.yml index d2806e1..d50feb1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,6 +34,8 @@ env: - PKG=liquid-swap STABLE=1 - PKG=lightning-loop STABLE=0 - PKG=nixops19_09 STABLE=1 + - PKG=joinmarket STABLE=1 + - PKG=joinmarket STABLE=0 script: - printf '%s (%s)\n' "$NIX_PATH" "$VER" - | diff --git a/test/base.py b/test/base.py index d250eb2..97b2571 100644 --- a/test/base.py +++ b/test/base.py @@ -102,6 +102,14 @@ def run_tests(extra_tests): assert_running("onion-chef") + assert_running("joinmarket") + machine.wait_until_succeeds( + log_has_string("joinmarket", "P2EPDaemonServerProtocolFactory starting on 27184") + ) + machine.wait_until_succeeds( + log_has_string("joinmarket-yieldgenerator", "Failed to open wallet",) + ) + # FIXME: use 'wait_for_unit' because 'create-web-index' always fails during startup due # to incomplete unit dependencies. # 'create-web-index' implicitly tests 'nodeinfo'. diff --git a/test/test.nix b/test/test.nix index 86252b3..23a6c26 100644 --- a/test/test.nix +++ b/test/test.nix @@ -56,6 +56,15 @@ import ./make-test.nix rec { services.btcpayserver.lightningBackend = "lnd"; # needed to test macaroon creation environment.systemPackages = with pkgs; [ openssl xxd ]; + + services.joinmarket.enable = true; + services.joinmarket.yieldgenerator = { + enable = true; + customParameters = '' + txfee = 200 + cjfee_a = 300 + ''; + }; # to test that unused secrets are made inaccessible by 'setup-secrets' systemd.services.generate-secrets.postStart = ''