Skip to content

Commit

Permalink
fix: tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
levovix0 committed Sep 19, 2021
1 parent a58180b commit e92e159
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions siwin.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@ requires "chroma >= 0.2.5"

when defined linux:
requires "x11 >= 1.1"
requires "https://github.com/levovix0/wayland"
when defined windows:
requires "winim >= 3.6"

task test, "test":
requires "nimgl >= 1.1", "pixie >= 2.1"
task testDeps, "install test dependencies":
exec "nimble install nimgl"
exec "nimble install pixie"
exec "nimble install https://github.com/levovix0/wayland"

task test, "test":
withDir "tests":
try: exec "nim c -r tests"
except: discard

task testWayland, "test wayland":
withDir "tests":
try: exec "nim c -d:wayland -r tests"
except: discard

0 comments on commit e92e159

Please sign in to comment.