Created
April 3, 2013 05:59
-
-
Save muhammadghazali/5298786 to your computer and use it in GitHub Desktop.
Example of task runner that set up and tear down circle_test database.
I use this commands when running test in CircleCI.
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
test: | |
npm install --dev | |
mysql -u ubuntu -e 'CREATE DATABASE IF NOT EXISTS circle_test' | |
mysql -u ubuntu circle_test < test_database.sql | |
node_modules/vows/bin/vows some-test/*-spec.js | |
mysql -u ubuntu circle_test < test_database.sql | |
node_modules/vows/bin/vows another-test/*-spec.js | |
mysql -u ubuntu -e 'DROP DATABASE IF EXISTS circle_test' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment