mirror of https://github.com/status-im/NimYAML.git
Still working on travis
This commit is contained in:
parent
e1f3ac9b07
commit
636ee81295
|
@ -42,7 +42,8 @@ proc ensureDevKitCloneCorrect(pwd: string) {.compileTime.} =
|
|||
let cloneOutput = staticExec("cd \"" & pwd &
|
||||
"\" && git clone https://github.com/ingydotnet/yaml-dev-kit.git -b data")
|
||||
#if cError != 0:
|
||||
if not dirExists(absolutePath):
|
||||
if not(dirExists(absolutePath)) or not(dirExists(absolutePath / ".git")) or
|
||||
not(dirExists(absolutePath / "229Q")):
|
||||
echo "could not clone https://github.com/ingydotnet/yaml-dev-kit.git. Make sure"
|
||||
echo "you are connected to the internet and your proxy settings are correct. output:\n"
|
||||
echo "$ git clone https://github.com/ingydotnet/yaml-dev-kit.git"
|
||||
|
|
|
@ -104,7 +104,8 @@ proc testsFor(path: string, root: bool = true, titlePrefix: string = ""):
|
|||
result = newStmtList()
|
||||
let
|
||||
baseDir = staticExec("pwd")
|
||||
nimPath = staticExec("which nim")
|
||||
nimPathRaw = staticExec("which nim")
|
||||
nimPath = if nimPathRaw[0] == '/': nimPathRaw else: baseDir / nimPathRaw
|
||||
title = titlePrefix & slurp(baseDir / path / "title").splitLines()[0]
|
||||
if fileExists(path / "00-code.nim"):
|
||||
var test = newCall("test", newLit(title))
|
||||
|
|
Loading…
Reference in New Issue