Created
July 29, 2015 12:17
-
-
Save Pchelolo/acb1d3f2a2e821086fd1 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
if [ "$2" = "sqlite" ] | |
then | |
npm config set restbase:test_backend sqlite | |
else | |
npm config set restbase:test_backend cassandra | |
fi | |
if [ "$1" = "test" ] | |
then | |
mocha | |
fi | |
if [ "$1" = "coverage" ] | |
then | |
istanbul cover _mocha -- -R spec | |
fi |
I'm also wondering whether we should try to automatically detect if cassandra is up and if not fall back on sqlite. What do you think?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So the defs would be:
and we would run that as:
?