Permalink
Browse files

Setup application to run on Travis CI

  • Loading branch information...
1 parent fad501a commit 3c7983ba2f0f267d5f51d1a66e76b9ec3e067719 @jbpros jbpros committed Oct 3, 2011
Showing with 54 additions and 4 deletions.
  1. +1 −1 .gitmodules
  2. +13 −0 .travis.yml
  3. +8 −2 Gemfile
  4. +8 −0 README.md
  5. +21 −0 Rakefile
  6. +1 −0 cucumber.yml
  7. +2 −1 package.json
View
@@ -1,3 +1,3 @@
[submodule "features/cucumber-features"]
path = features/cucumber-features
- url = git@github.com:cucumber/cucumber-features.git
+ url = https://jbpros@github.com/cucumber/cucumber-features.git
View
@@ -0,0 +1,13 @@
+rvm: "1.9.2"
+before_script: "git submodule update --init && npm install"
+script: "rake"
+
+branches:
+ only:
+ - master
+
+notifications:
+ email:
+ - jb@jbpros.com
+ irc:
+ - "irc.freenode.org#cucumber.js"
View
@@ -1,3 +1,9 @@
source :rubygems
-gem "aruba", "0.4.6"
-gem "guard-jasmine-node", "0.0.5"
+
+group :test do
+ gem "aruba", "0.4.6"
+end
+
+group :dev do
+ gem "guard-jasmine-node", "0.0.5"
+end
View
@@ -60,6 +60,14 @@ There are a few other Cucumber.js-dependent features. Execute everything:
$ ./bin/cucumber.js
+### Rake
+
+Alternatively, you can run everything with the help of Rake:
+
+ $ git submodule update --init
+ $ bundle
+ $ rake
+
### Debug messages
You can display debug messages by setting the DEBUG_LEVEL environment variable. It goes from `1` to `5`. `5` will diplay everything, `1` will only print out the critical things.
View
@@ -0,0 +1,21 @@
+task :default => [:test]
+
+desc "Run all tests"
+task :test => "test:all"
+
+namespace :test do
+
+ desc "Run all tests"
+ task :all => [ "test:rb", "test:js" ]
+
+ desc "Run the features through Cucumber (Ruby) and Aruba"
+ task :rb do
+ sh %{ cucumber -p quiet }
+ end
+
+ desc "Run the features through Cucumber.js and the specs through Jasmine-node"
+ task :js do
+ sh %{ npm test }
+ end
+
+end
View
@@ -0,0 +1 @@
+quiet: -f progress --no-snippets
View
@@ -29,7 +29,8 @@
, "mkdirp" : "0.0.6"
, "cucumber-html": "0.2.0"
}
-, "scripts" : { "test" : "./bin/cucumber.js" }
+, "scripts" :
+ { "test" : "./bin/cucumber.js && jasmine-node spec" }
, "bin": { "cucumber.js": "./bin/cucumber.js" }
, "licenses" :
[ { "type" : "MIT"

0 comments on commit 3c7983b

Please sign in to comment.