Skip to content

Instantly share code, notes, and snippets.

@Pchelolo
Created July 29, 2015 12:17
Show Gist options
  • Save Pchelolo/acb1d3f2a2e821086fd1 to your computer and use it in GitHub Desktop.
Save Pchelolo/acb1d3f2a2e821086fd1 to your computer and use it in GitHub Desktop.
#!/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
@d00rman
Copy link

d00rman commented Jul 29, 2015

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