Skip to content

Instantly share code, notes, and snippets.

@AnthonySuper
Created April 19, 2017 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AnthonySuper/5977a0f5c3ff789f05f9375283e0a0d3 to your computer and use it in GitHub Desktop.
Save AnthonySuper/5977a0f5c3ff789f05f9375283e0a0d3 to your computer and use it in GitHub Desktop.
A ruby script to run NPM an dJS tests.
#!/usr/bin/env ruby
mvn = system("mvn test")
js = system("npm test")
if mvn && js
exit 0
elsif ! mvn
STDERR.puts "Mvn failed!"
exit -1
else
STDERR.puts "NPM failed!"
exit -1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment