diff options
author | Fredrik Høisæther Rasch <fredrik.rasch@gmail.com> | 2017-11-15 17:25:48 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-11-15 17:25:48 +0100 |
commit | 3d5d6931f01550cd384805fd5c7474eaabc2c962 (patch) | |
tree | eded24704575e7bedd4e6d6532316b850930ab2b | |
parent | b7ea1b08193002630b09a609cc881756d0a1f139 (diff) | |
download | Nim-3d5d6931f01550cd384805fd5c7474eaabc2c962.tar.gz |
Appveyor thttpclient (#6744)
* App option value for disabling tests for AppVeyor * Disable thttpclient on AppVeyor
-rw-r--r-- | tests/stdlib/thttpclient.nim | 1 | ||||
-rw-r--r-- | tests/testament/specs.nim | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/stdlib/thttpclient.nim b/tests/stdlib/thttpclient.nim index 54588d3f0..fff02722a 100644 --- a/tests/stdlib/thttpclient.nim +++ b/tests/stdlib/thttpclient.nim @@ -3,6 +3,7 @@ discard """ exitcode: 0 output: "OK" disabled: "travis" + disabled: "appveyor" """ import strutils diff --git a/tests/testament/specs.nim b/tests/testament/specs.nim index e5506e796..dcf5f2831 100644 --- a/tests/testament/specs.nim +++ b/tests/testament/specs.nim @@ -13,6 +13,7 @@ import parseutils, strutils, os, osproc, streams, parsecfg var compilerPrefix* = "compiler" / "nim " let isTravis = existsEnv("TRAVIS") +let isAppVeyor = existsEnv("APPVEYOR") proc cmdTemplate*(): string = compilerPrefix & "$target --lib:lib --hints:on -d:testing $options $file" @@ -178,6 +179,8 @@ proc parseSpec*(filename: string): TSpec = when defined(posix): result.err = reIgnored of "travis": if isTravis: result.err = reIgnored + of "appveyor": + if isAppVeyor: result.err = reIgnored else: raise newException(ValueError, "cannot interpret as a bool: " & e.value) of "cmd": |