summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rw-r--r--tests/testament/categories.nim6
2 files changed, 4 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 2896b126a..e9b76bf6a 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,7 +22,6 @@ before_install:
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install boehmgc; fi
   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sfml; fi
-  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install node@8; fi
 
 before_script:
   - set -e
diff --git a/tests/testament/categories.nim b/tests/testament/categories.nim
index 75da486dc..f7cd0815c 100644
--- a/tests/testament/categories.nim
+++ b/tests/testament/categories.nim
@@ -482,8 +482,10 @@ proc processCategory(r: var TResults, cat: Category, options: string) =
       compileRodFiles(r, cat, options)
       runRodFiles(r, cat, options)
   of "js":
-    # XXX JS doesn't need to be special anymore
-    jsTests(r, cat, options)
+    # 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):
+      jsTests(r, cat, options)
   of "dll":
     dllTests(r, cat, options)
   of "flags":