Skip to content

Commit

Permalink
Allow to run unit tests in headless environments
Browse files Browse the repository at this point in the history
* Saving/Loading Projects in Mastodon is currently not possible in a headless way
* To be able to run e.g. unit tests in a headless environment a display needs to be simulated
  • Loading branch information
stefanhahmann authored and tinevez committed Jun 18, 2024
1 parent f426ad0 commit 21de512
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/build.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/bin/sh
export DISPLAY=:99
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 &
curl -fsLO https://raw.githubusercontent.com/scijava/scijava-scripts/main/ci-build.sh
sh ci-build.sh

0 comments on commit 21de512

Please sign in to comment.