Permalink
Browse files

enable travis

  • Loading branch information...
1 parent faf14ea commit d3377e04d09635ee1dee3ccfaf31dc6623414d40 @johnmuhl johnmuhl committed Jan 7, 2012
Showing with 39 additions and 0 deletions.
  1. +14 −0 .travis.yml
  2. +23 −0 spec/ci/before_script
  3. +2 −0 spec/ci/script
View
@@ -0,0 +1,14 @@
+rvm:
+ - 1.8.7
+
+before_script: "./spec/ci/before_script"
+
+script: "./spec/ci/script"
+
+env:
+ - RADIANT_VERSION=master DB=postgres
+
+notifications:
+ recipients:
+ - git@johnmuhl.com
+ irc: "irc.freenode.org#radiantcms"
View
@@ -0,0 +1,23 @@
+cd ~
+git clone git://github.com/radiant/radiant.git
+cd ~/radiant
+if [[ $RADIANT_VERSION != "master" ]]
+then
+ git checkout -b $RADIANT_VERSION $RADIANT_VERSION
+fi
+cp -r ~/builds/radiant/radiant-clipped-extension vendor/extensions/clipped
+gem install bundler --pre
+echo 'gem "radiant-clipped-extension", :path => "vendor/extensions/clipped"' >> Gemfile
+bundle install
+
+case $DB in
+ "mysql" )
+ mysql -e 'create database radiant_test;'
+ cp spec/ci/database.mysql.yml config/database.yml;;
+ "postgres" )
+ psql -c 'create database radiant_test;' -U postgres
+ cp spec/ci/database.postgresql.yml config/database.yml;;
+esac
+
+bundle exec rake db:migrate
+bundle exec rake db:migrate:extensions
View
@@ -0,0 +1,2 @@
+cd ~/radiant
+bundle exec rake spec:extensions EXT=clipped

0 comments on commit d3377e0

Please sign in to comment.