Permalink
Browse files

Add initial travis support

  • Loading branch information...
1 parent 2d6a0a7 commit 4e1da1527f6523afac08c11e8b7597d140b55f8e @elskwid elskwid committed Jan 26, 2013
@@ -0,0 +1,6 @@
+# Add instructions to execute before your CI run here.
+#
+# The following is used for testing a Rails Engine with a dummy test app.
+#
+# cd test/dummy
+# RAILS_ENV=test bundle exec rake db:setup
@@ -0,0 +1,8 @@
+engine=$(ruby -e 'puts RUBY_ENGINE')
+
+case $engine in
+ "ruby" )
+ bundle exec rake test && bundle exec cane;;
+ * )
+ bundle exec rake test;;
+esac
@@ -0,0 +1,12 @@
+language: ruby
+rvm:
+ - 1.9.2
+ - 1.9.3
+ - jruby-19mode
+ - rbx-19mode
+env:
+ - CI=true RAILS_ENV=test JRUBY_OPTS=--1.9 RBXOPT=-X19
+before_script: "./test/ci/before_script.sh"
+script: "./test/ci/ci_runner.sh"
+notifications:
+ flowdock: 1ec5c0efa5a264c67c6ba3b2e6574a70
@@ -41,11 +41,17 @@ def standalone
copy_file "test.rake", "lib/tasks/test.rake"
copy_file "Guardfile"
+ empty_directory "test/ci"
+ copy_file "ci/before_script.sh", "test/ci/before_script.sh"
+ copy_file "ci/ci_runner.sh", "test/ci/ci_runner.sh"
+ copy_file "ci/travis.yml", ".travis.yml"
+
create_file ".gitignore" unless File.exist?(".gitignore")
append_file ".gitignore", "coverage"
say_status "", ""
say_status "success", "thincloud-test has finished."
+ say_status "", "Customize .travis.yml and test/ci/* for your project."
end
end

0 comments on commit 4e1da15

Please sign in to comment.