Skip to content

Commit

Permalink
debug CI
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Aug 28, 2024
1 parent 99ae3ae commit 28caf10
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/setup_joplin.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import json
import os
import shutil
import stat
import subprocess
import time
Expand Down Expand Up @@ -130,10 +131,12 @@ def api_available() -> Optional[bool]:
return

# TODO: check if docker is installed and available
if shutil.which("docker") is None:
raise Exception("Please install docker and try again.")
self.joplin_process = subprocess.Popen(
["docker", "run", "-p", "22300:22300", "joplin/server:latest"],
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
# stdout=subprocess.DEVNULL,
# stderr=subprocess.DEVNULL,
)

wait_for(api_available, timeout=20)
Expand Down

0 comments on commit 28caf10

Please sign in to comment.