Skip to content

Commit

Permalink
fix testament compile issues
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomq committed Oct 25, 2021
1 parent b9f3bc8 commit e45d7a6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion examples/python/nakefile.nim
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,16 @@ proc runTests() =
proc generateDocs() =
execNim "doc -d:useStdLib -o:docs/" & library & ".html " & mainApp

task "clean", "clean all files":
proc cleanUp() =
os.removeDir(buildDir)

task "clean", "clean all files":
cleanUp()

task "pyLib", "Build python lib":
buildPyLib()

task "test", "Run tests":
cleanUp()
runTests()
echo "all python tests passed"
4 changes: 2 additions & 2 deletions nimview.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ proc execSh(cmd: string) =
proc builDemoBinaries() =
let baseDir = thisDir()
cd baseDir / "examples/svelte_todo"
exec "nim c -d:release -d:useServer --out:" & baseDir & "/demo/httpTodo.exe src/App.nim"
exec "nim c -d:release --app:gui --out:" & baseDir & "/demo/appTodo.exe src/App.nim"
exec "nim c -f -d:release -d:useServer --out:" & baseDir & "/demo/httpTodo.exe src/App.nim"
exec "nim c -f -d:release --app:gui --out:" & baseDir & "/demo/appTodo.exe src/App.nim"
cd baseDir

proc builDemoJs() =
Expand Down
4 changes: 2 additions & 2 deletions src/nimview/webviewRenderer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ else:
when defined webview2:
static:
echo "Warning: Webview 2 is not stable yet!"
import nimview/webview2/src/webview except debug
import webview2/src/webview except debug
else:
import nimview/webview/webview except debug
import webview/webview except debug

var myWebView*: Webview

Expand Down
2 changes: 1 addition & 1 deletion tests/desktopSample.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
discard """
action: "compile"
cmd: "nim $target --hints:on -d:testing $file"
cmd: "nim $target -f --hints:on -d:testing $file"
"""
import ../src/nimview
import os
Expand Down
2 changes: 1 addition & 1 deletion tests/httpSample.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
discard """
action: "compile"
cmd: "nim $target --hints:on -d:testing $file"
cmd: "nim $target -f --hints:on -d:testing $file"
"""
import ../src/nimview

Expand Down
2 changes: 1 addition & 1 deletion tests/requestsFail.nim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
discard """
action: "run"
cmd: "nim $target --hints:on -d:testing $file"
cmd: "nim $target -f --hints:on -d:testing $file"
output: '''
WARN Error calling function, args: {"request":"echoAndModify","data":[],"responseId":0}
WARN Error calling function, args: {"request":"echoAndModify3","data":["first"],"responseId":2}
Expand Down

0 comments on commit e45d7a6

Please sign in to comment.