From 27153627c9f0322741749a26f20baaba4ae4bc2c Mon Sep 17 00:00:00 2001 From: mohayonao Date: Sun, 23 Mar 2014 10:33:26 +0900 Subject: [PATCH] add testem --- .travis.yml | 3 ++- Gruntfile.js | 12 ++++++++++++ assets/index.tmpl | 1 + package.json | 3 ++- testem.json | 3 +++ 5 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 testem.json diff --git a/.travis.yml b/.travis.yml index 788f703..9048ada 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,8 @@ node_js: - 0.10 before_script: - npm install -g grunt-cli - +script: + - npm run-script travis notifications: webhooks: urls: diff --git a/Gruntfile.js b/Gruntfile.js index 585b215..d031488 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -313,6 +313,18 @@ module.exports = function(grunt) { grunt.task.run("test::list:lcovonly"); }); + grunt.registerTask("testem", function() { + var done = this.async(); + var child = grunt.util.spawn({ + cmd: "testem", + args: [ "ci", "--launch", "Chrome,Safari,Firefox,Opera" ] + }, function() { + done(); + }); + child.stdout.pipe(process.stdout); + child.stderr.pipe(process.stderr); + }); + function sortModules(root) { var result = []; diff --git a/assets/index.tmpl b/assets/index.tmpl index c353b05..46a766a 100644 --- a/assets/index.tmpl +++ b/assets/index.tmpl @@ -10,6 +10,7 @@ +