Permalink
Browse files

add travis files

  • Loading branch information...
1 parent 7637b35 commit a68be48661bf8ba123d69ecfcbec7f45cd70f433 @marutosi marutosi committed Jan 23, 2013
Showing with 25 additions and 0 deletions.
  1. +7 −0 .travis.yml
  2. +6 −0 test/database.travis.yml
  3. +12 −0 test/travis.sh
View
@@ -0,0 +1,7 @@
+rvm:
+ - 1.8.7
+ - 1.9.3
+env:
+ - DB=sqlite
+before_script: "./test/travis.sh"
+script: "sh -c 'cd travis && bundle exec rake redmine:plugins:test'"
@@ -0,0 +1,6 @@
+development:
+ adapter: sqlite3
+ database: db/development.sqlite3
+test:
+ adapter: sqlite3
+ database: db/test.sqlite3
View
@@ -0,0 +1,12 @@
+echo "Setting up dummy Redmine"
+git clone https://github.com/redmine/redmine.git travis
+echo "Checking out branch"
+cd travis && git checkout origin/2.2-stable
+echo "Copying database.yml"
+cp ../test/database.travis.yml config/database.yml
+echo "Cloning the plugin to dummy Redmine plugins folder"
+git clone ../ plugins/redmine_evm
+bundle install
+echo "Migrating database"
+RAILS_ENV=test bundle exec rake db:migrate
+RAILS_ENV=development bundle exec rake db:migrate

1 comment on commit a68be48

@gamafranco
Member

This is nice. Thanks.

Please sign in to comment.