Permalink
Browse files

added travis recipe

  • Loading branch information...
1 parent 64302f8 commit e2cee12163a180a5bede0e65cafe0931aa7a754f @jfahrenkrug jfahrenkrug committed May 8, 2012
Showing with 47 additions and 0 deletions.
  1. +17 −0 .travis.yml
  2. +28 −0 spec/ci/before_script
  3. +2 −0 spec/ci/script
View
@@ -0,0 +1,17 @@
+rvm:
+ - 1.8.7
+ - 1.9.2
+ - 1.9.3
+
+before_script: "./spec/ci/before_script"
+
+script: "./spec/ci/script"
+
+env:
+ - RADIANT_VERSION=1.0.0 DB=mysql
+ - RADIANT_VERSION=1.0.0 DB=postgres
+ - RADIANT_VERSION=1.1.0.alpha DB=mysql
+ - RADIANT_VERSION=1.1.0.alpha DB=postgres
+
+notifications:
+ irc: "irc.freenode.org#radiantcms"
View
@@ -0,0 +1,28 @@
+cd ~
+git clone git://github.com/radiant/radiant.git
+cd ~/radiant
+if [[ $RADIANT_VERSION != "master" ]]
+then
+ git checkout -b $RADIANT_VERSION $RADIANT_VERSION
+fi
+if [[ $RADIANT_VERSION == "0.9.1" ]]
+then
+ touch Gemfile
+ echo "source :rubygems" >> Gemfile
+fi
+cp -r ~/builds/*/radiant-multi-site-extension vendor/extensions/multi_site
+gem install bundler --pre
+echo gemspec >> 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=multi_site

0 comments on commit e2cee12

Please sign in to comment.