Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
Last active August 29, 2015 14:03
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 juanpabloaj/ac0cdc96c8ebe422a8ba to your computer and use it in GitHub Desktop.
Save juanpabloaj/ac0cdc96c8ebe422a8ba to your computer and use it in GitHub Desktop.
module.exports = function(grunt){
grunt.initConfig({
watch: {
js: {
files : [ 'Gruntfile.js', '*/tests/*.py'],
tasks: ['pythontest'],
}
}
});
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('pythontest', function(){
grunt.util.spawn({
cmd: 'python',
args: ['manage.py', 'test'],
opts: {stdio: 'inherit'},
});
});
grunt.registerTask('default', ['watch']);
};
{
"name": "forPythonTest",
"version": "0.0.1",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-watch": "^0.6.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment