Skip to content

Commit

Permalink
added in testing harness
Browse files Browse the repository at this point in the history
  • Loading branch information
ksylvest committed Jul 31, 2013
1 parent fb447f0 commit 60653a1
Show file tree
Hide file tree
Showing 9 changed files with 9,911 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
@@ -0,0 +1,8 @@
language: ruby
rvm:
- 2.0.0
env:
- DISPLAY=:99.0
script:
- "sh -e /etc/init.d/xvfb start"
- "bundle exec rake jasmine:ci"
6 changes: 4 additions & 2 deletions Cakefile
Expand Up @@ -15,11 +15,13 @@ command = (name, args...) ->

task "watch", "SASS and CoffeeScript", (options) ->
command "sass", "--watch", "stylesheets:stylesheets"
command "sass", "--watch", "spec:spec"
command "coffee", "-wc", "javascripts"
command "coffee", "-wc", "spec"

task "compile", "HAML", (opions) ->
command "haml", "index.haml", "index.html"

task "package", "Package CSS and JS", (options) ->
command "zip", "packages/#{PROJECT}.zip", "javascripts/#{PROJECT}.js", "stylesheets/#{PROJECT}.css"
command "tar", "-cf", "packages/#{PROJECT}.tar", "javascripts/#{PROJECT}.js", "stylesheets/#{PROJECT}.css"
command "zip", "packages/#{PROJECT}.zip", "javascripts/#{PROJECT}.js"
command "tar", "-cf", "packages/#{PROJECT}.tar", "javascripts/#{PROJECT}.js"
2 changes: 2 additions & 0 deletions Gemfile
@@ -1,6 +1,8 @@
source 'https://rubygems.org'

gem 'rake'
gem 'haml'
gem 'sass'
gem 'neat'
gem 'bourbon'
gem 'jasmine'
32 changes: 31 additions & 1 deletion Gemfile.lock
Expand Up @@ -4,20 +4,50 @@ GEM
bourbon (3.1.8)
sass (>= 3.2.0)
thor
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
diff-lcs (1.2.4)
ffi (1.9.0)
haml (4.0.3)
tilt
jasmine (1.3.2)
jasmine-core (~> 1.3.1)
rack (~> 1.0)
rspec (>= 1.3.1)
selenium-webdriver (>= 0.1.3)
jasmine-core (1.3.1)
multi_json (1.7.7)
neat (1.3.0)
bourbon (>= 2.1)
sass (>= 3.2)
sass (3.2.9)
rack (1.5.2)
rake (10.1.0)
rspec (2.14.1)
rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0)
rspec-core (2.14.4)
rspec-expectations (2.14.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.2)
rubyzip (0.9.9)
sass (3.2.10)
selenium-webdriver (2.33.0)
childprocess (>= 0.2.5)
multi_json (~> 1.0)
rubyzip
websocket (~> 1.0.4)
thor (0.18.1)
tilt (1.4.1)
websocket (1.0.7)

PLATFORMS
ruby

DEPENDENCIES
bourbon
haml
jasmine
neat
rake
sass
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -26,6 +26,10 @@ Growling is easy:
$.growl.warning({ message: "The kitten is ugly!" });
</script>

## Status

[![Status](https://travis-ci.org/ksylvest/jquery-growl.png)](https://travis-ci.org/ksylvest/jquery-growl)

# Copyright

Copyright (c) 2010 - 2013 Kevin Sylvestre. See LICENSE for details.
9 changes: 9 additions & 0 deletions Rakefile
@@ -0,0 +1,9 @@

begin
require 'jasmine'
load 'jasmine/tasks/jasmine.rake'
rescue LoadError
task :jasmine do
abort "Jasmine is not available. In order to run jasmine, you must: (sudo) gem install jasmine"
end
end
2 changes: 1 addition & 1 deletion index.haml
Expand Up @@ -6,7 +6,7 @@
%link{ href:"https://fonts.googleapis.com/css?family=Lato", rel: "stylesheet", type: "text/css" }
%link{ href:"stylesheets/jquery.growl.css", rel: "stylesheet", type: "text/css" }
%link{ href:"stylesheets/sample.css", rel: "stylesheet", type: "text/css" }
%script{ src:"https://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.js", type: "text/javascript" }
%script{ src:"javascripts/jquery.js", type: "text/javascript" }
%script{ src:"javascripts/jquery.growl.js", type: "text/javascript" }
%script{ src:"javascripts/sample.js", type: "text/javascript" }
%script{ src: "javascripts/rainbow.js", type: "text/javascript" }
Expand Down

0 comments on commit 60653a1

Please sign in to comment.