* refs #68 macro=>proc cSkipSymbol * refs #68 macro=>proc cDebug * refs #68 macro=>proc cDisableCaching * refs #68 notes for cDefine * refs #68 macro=>proc cAddSearchDir ; improve some runnableExamples * refs #68 macro=>proc cAddStdDir * $projpath/include => testsIncludeDir() everywhere * disable $projpath interpolation (error prone) * fix tests * make nim doc part of test suite; fix for 0.19.2
This commit is contained in:
parent
74f4485ecd
commit
9fe45ac32b
11 changed files with 99 additions and 77 deletions
|
|
@ -43,14 +43,18 @@ proc testAll() =
|
|||
if defined(OSX) or defined(Windows) or not existsEnv("TRAVIS"):
|
||||
tsoloud() # requires some libraries on linux, need them installed in TRAVIS
|
||||
|
||||
const htmldocsDir = "build/htmldocs"
|
||||
|
||||
proc runNimDoc() =
|
||||
execCmd &"nim doc -o:{htmldocsDir} --project --index:on nimterop/all.nim"
|
||||
|
||||
task test, "Test":
|
||||
for options in ["", "-d:release"]:
|
||||
buildToast(options)
|
||||
testAll()
|
||||
runNimDoc()
|
||||
|
||||
task docs, "Generate docs":
|
||||
# Uses: pip install ghp-import
|
||||
execCmd "nim doc --project --index:on nimterop/cimport"
|
||||
execCmd "nim doc --project --index:on nimterop/git"
|
||||
execCmd "nim doc --project --index:on nimterop/plugin"
|
||||
execCmd "ghp-import --no-jekyll -fp nimterop/htmldocs"
|
||||
runNimDoc()
|
||||
execCmd &"ghp-import --no-jekyll -fp {htmldocsDir}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue