summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2014-05-05 02:04:11 -0600
committerDan Allen <dan.j.allen@gmail.com>2014-05-05 02:04:11 -0600
commit275d9358691a46e02316a5fade88a2ee7a9dcc62 (patch)
treee34361d21d069d7e32cb71fe0566a74059753542
parentd7ab2fded277eb7e9ecd9b86399939fcf7e0e897 (diff)
add option to run-tests.sh script to run tests on all Rubies
-rwxr-xr-xrun-tests.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/run-tests.sh b/run-tests.sh
index 5529a4f4..3dfcb1c7 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -1,4 +1,10 @@
#!/bin/sh
-# A convenience script to run tests without delays caused by incrementally writing to the terminal buffer
-rake > /tmp/asciidoctor-test-results.txt 2>&1; cat /tmp/asciidoctor-test-results.txt
+# A convenience script to run tests without delays caused by incrementally writing to the terminal buffer.
+# This script will execute against all supported Ruby versions if "all" is the first argument to the script.
+
+if [ "$1" == "all" ]; then
+ rvm 1.8@asciidoctor-dev,jruby@asciidoctor-dev,rbx@asciidoctor-dev,1.9@asciidoctor-dev,2.0@asciidoctor-dev,2.1@asciidoctor-dev "do" ./run-tests.sh
+else
+ rake > /tmp/asciidoctor-test-results.txt 2>&1; cat /tmp/asciidoctor-test-results.txt
+fi