Skip to content

Commit

Permalink
Added qunit-cli-runner for Travis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wagenet committed Feb 22, 2013
1 parent 3bb4c3f commit 8721b6c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# A sample Gemfile
source "https://rubygems.org"

gem "js_module_transpiler", github: "wycats/js_module_transpiler", branch: "master"
gem "qunit-cli-runner", github: "wagenet/qunit-cli-runner", branch: "master"
gem "rake"

10 changes: 10 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
GIT
remote: git://github.com/wagenet/qunit-cli-runner.git
revision: 67e773091aed52773eb78ce1b557f642147fe9d9
branch: master
specs:
qunit-cli-runner (0.0.1)
colored

GIT
remote: git://github.com/wycats/js_module_transpiler.git
revision: c9f0ada0f7b7ec654ddec25f4a1fb07bcf41c9f7
Expand All @@ -9,6 +17,7 @@ GIT
GEM
remote: https://rubygems.org/
specs:
colored (1.2)
rake (10.0.2)
thor (0.16.0)

Expand All @@ -17,4 +26,5 @@ PLATFORMS

DEPENDENCIES
js_module_transpiler!
qunit-cli-runner!
rake
7 changes: 6 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ end

require "bundler/setup"
require "js_module_transpiler"
require 'qunit-cli-runner'

directory "dist"

Expand Down Expand Up @@ -64,12 +65,16 @@ task :build => ["dist/router.js", "dist/router.amd.js", "dist/router.cjs.js"]

task :release => [:debug, :build]

task :test, :debug do |task, args|
task :browser_test, :debug do |task, args|
if args["debug"]
sh "open tests/index.debug.html"
else
sh "open tests/index.html"
end
end
task :browser_test => :release

QunitCliRunner::Task.new('test')
task :test => :release

task :default => :test

0 comments on commit 8721b6c

Please sign in to comment.