summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--tests/async/tasyncdial.nim1
-rw-r--r--tests/stdlib/thttpclient.nim1
-rw-r--r--tests/stdlib/tnetdial.nim1
-rw-r--r--tests/testament/specs.nim4
4 files changed, 7 insertions, 0 deletions
diff --git a/tests/async/tasyncdial.nim b/tests/async/tasyncdial.nim
index d70e14020..fa81235fe 100644
--- a/tests/async/tasyncdial.nim
+++ b/tests/async/tasyncdial.nim
@@ -4,6 +4,7 @@ discard """
 OK AF_INET
 OK AF_INET6
 '''
+  disabled: "travis"
 """
 
 import
diff --git a/tests/stdlib/thttpclient.nim b/tests/stdlib/thttpclient.nim
index e759e2977..54588d3f0 100644
--- a/tests/stdlib/thttpclient.nim
+++ b/tests/stdlib/thttpclient.nim
@@ -2,6 +2,7 @@ discard """
   cmd: "nim c --threads:on -d:ssl $file"
   exitcode: 0
   output: "OK"
+  disabled: "travis"
 """
 
 import strutils
diff --git a/tests/stdlib/tnetdial.nim b/tests/stdlib/tnetdial.nim
index da6088d70..695150179 100644
--- a/tests/stdlib/tnetdial.nim
+++ b/tests/stdlib/tnetdial.nim
@@ -2,6 +2,7 @@ discard """
   cmd: "nim c --threads:on $file"
   exitcode: 0
   output: "OK"
+  disabled: "travis"
 """
 
 import os, net, nativesockets, asyncdispatch
diff --git a/tests/testament/specs.nim b/tests/testament/specs.nim
index 89e786d48..e5506e796 100644
--- a/tests/testament/specs.nim
+++ b/tests/testament/specs.nim
@@ -12,6 +12,8 @@ import parseutils, strutils, os, osproc, streams, parsecfg
 
 var compilerPrefix* = "compiler" / "nim "
 
+let isTravis = existsEnv("TRAVIS")
+
 proc cmdTemplate*(): string =
   compilerPrefix & "$target --lib:lib --hints:on -d:testing $options $file"
 
@@ -174,6 +176,8 @@ proc parseSpec*(filename: string): TSpec =
         when defined(unix): result.err = reIgnored
       of "posix":
         when defined(posix): result.err = reIgnored
+      of "travis":
+        if isTravis: result.err = reIgnored
       else:
         raise newException(ValueError, "cannot interpret as a bool: " & e.value)
     of "cmd":