Restream/redmine_tagging

View on GitHub
.travis.yml

Summary

Maintainability
Test Coverage
language: ruby

services:
  - mysql
  - postgresql

rvm:
  - 2.3.1

gemfile:
  - $REDMINE_PATH/Gemfile

env:
  - REDMINE_VER=3.1.7 DB=mysql
  - REDMINE_VER=3.2.4 DB=mysql
  - REDMINE_VER=3.3.1 DB=mysql
  - REDMINE_VER=3.1.7 DB=postgresql
  - REDMINE_VER=3.2.4 DB=postgresql
  - REDMINE_VER=3.3.1 DB=postgresql

before_install:
  - export PLUGIN_NAME=redmine_tagging
  - export REDMINE_PATH=$HOME/redmine
  - svn co http://svn.redmine.org/redmine/tags/$REDMINE_VER $REDMINE_PATH
  - ln -s $TRAVIS_BUILD_DIR $REDMINE_PATH/plugins/$PLUGIN_NAME
  - cp config/database-$DB-travis.yml $REDMINE_PATH/config/database.yml
  - cp config/configuration-travis.yml $REDMINE_PATH/config/configuration.yml
  - echo "config.active_record.schema_format = :sql" > $REDMINE_PATH/config/additional_environment.rb
  - cd $REDMINE_PATH

before_script:
  - export RAILS_ENV=test
  - bundle exec rake db:create
  - bundle exec rake db:migrate
  - bundle exec rake acts_as_taggable_on_engine:install:migrations
  - bundle exec rake db:migrate
  - bundle exec rake redmine:plugins:migrate
  - bundle exec rake db:structure:dump

script:
  - export RUBYOPT="-W0"
  - bundle exec rake redmine:plugins:test