Skip to content

Commit

Permalink
enable travis
Browse files Browse the repository at this point in the history
  • Loading branch information
john muhl committed Jan 7, 2012
1 parent 1f35650 commit 9a1453c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .travis.yml
@@ -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"
23 changes: 23 additions & 0 deletions spec/ci/before_script
@@ -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
2 changes: 2 additions & 0 deletions spec/ci/script
@@ -0,0 +1,2 @@
cd ~/radiant
bundle exec rake spec:extensions EXT=archive

0 comments on commit 9a1453c

Please sign in to comment.