Created
April 19, 2017 20:21
-
-
Save AnthonySuper/5977a0f5c3ff789f05f9375283e0a0d3 to your computer and use it in GitHub Desktop.
A ruby script to run NPM an dJS tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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