Permalink
Browse files

enable travis

  • Loading branch information...
1 parent 1f35650 commit 9a1453cbf6d506b0ee04d8455d2268947cb9536b @johnmuhl johnmuhl committed Jan 7, 2012
Showing with 44 additions and 0 deletions.
  1. +19 −0 .travis.yml
  2. +23 −0 spec/ci/before_script
  3. +2 −0 spec/ci/script
View
@@ -0,0 +1,19 @@
+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.rc4 DB=mysql
+ - RADIANT_VERSION=1.0.0.rc4 DB=postgres
+ - RADIANT_VERSION=master DB=mysql
+ - 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-archive-extension vendor/extensions/archive
+gem install bundler --pre
+echo 'gem "radiant-archive-extension", :path => "vendor/extensions/archive"' >> 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=archive

0 comments on commit 9a1453c

Please sign in to comment.