Merge branch 'araq-misc' into devel
This commit is contained in:
commit
2870ca5d71
122 changed files with 772 additions and 882 deletions
|
|
@ -260,6 +260,8 @@ proc jsTests(r: var TResults, cat: Category, options: string) =
|
|||
# ------------------------- nim in action -----------
|
||||
|
||||
proc testNimInAction(r: var TResults, cat: Category, options: string) =
|
||||
let options = options & " --nilseqs:on"
|
||||
|
||||
template test(filename: untyped, action: untyped) =
|
||||
testSpec r, makeTest(filename, options, cat, action)
|
||||
|
||||
|
|
@ -488,7 +490,9 @@ proc processCategory(r: var TResults, cat: Category, options: string) =
|
|||
of "js":
|
||||
# only run the JS tests on Windows or Linux because Travis is bad
|
||||
# and other OSes like Haiku might lack nodejs:
|
||||
when defined(linux) or defined(windows):
|
||||
if not defined(linux) and isTravis:
|
||||
discard
|
||||
else:
|
||||
jsTests(r, cat, options)
|
||||
of "dll":
|
||||
dllTests(r, cat, options)
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ import parseutils, strutils, os, osproc, streams, parsecfg
|
|||
|
||||
var compilerPrefix* = "compiler" / "nim "
|
||||
|
||||
let isTravis = existsEnv("TRAVIS")
|
||||
let isAppVeyor = existsEnv("APPVEYOR")
|
||||
let isTravis* = existsEnv("TRAVIS")
|
||||
let isAppVeyor* = existsEnv("APPVEYOR")
|
||||
|
||||
proc cmdTemplate*(): string =
|
||||
compilerPrefix & "$target --lib:lib --hints:on -d:testing $options $file"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue