"Fossies" - the Fresh Open Source Software Archive

Member "asciidoctor-2.0.10/run-tests.sh" (1 Jun 2019, 427 Bytes) of package /linux/www/asciidoctor-2.0.10.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/sh
    3 # A convenience script to run tests without delays caused by incrementally writing to the terminal buffer.
    4 # This script will execute against all supported Ruby versions if "all" is the first argument to the script.
    6 if [ "$1" = "all" ]; then
    7   rvm 2.3,2.6,jruby-9.2 "do" ./run-tests.sh
    8 else
    9   GEM_PATH=$(bundle exec ruby -e "puts ENV['GEM_HOME']")
   10   CONSOLE_OUTPUT=$(rake test:all 2>&1)
   11   echo "$CONSOLE_OUTPUT"
   12 fi