Skip to content

Commit

Permalink
added travis configuration and codeclimate badge
Browse files Browse the repository at this point in the history
  • Loading branch information
nodecarter committed Oct 3, 2013
1 parent 794cae4 commit 7012e53
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .travis.yml
@@ -0,0 +1,40 @@
language: ruby

services:
- mysql

rvm:
- 1.9.3
- 2.0.0

env:
- REDMINE_VER=2.1.6
- REDMINE_VER=2.2.4
- REDMINE_VER=2.3.3

matrix:
exclude:
- rvm: 2.0.0
env: REDMINE_VER=2.1.6
- rvm: 2.0.0
env: REDMINE_VER=2.2.4

before_install:
- export PLUGIN_NAME=redmine_non_member_watcher
- export DB=mysql
- export REDMINE_PATH=$HOME/redmine
- git clone --depth=1 --branch=$REDMINE_VER https://github.com/redmine/redmine.git $REDMINE_PATH
- ln -s $TRAVIS_BUILD_DIR $REDMINE_PATH/plugins/$PLUGIN_NAME
- cp config/database-$DB-travis.yml $REDMINE_PATH/config/database.yml
- cd $REDMINE_PATH

install:
- bundle install

before_script:
- rake db:create
- rake db:migrate
- rake redmine:plugins:migrate

script:
- rake redmine:plugins:test NAME=$PLUGIN_NAME
3 changes: 3 additions & 0 deletions README.md
@@ -1,5 +1,8 @@
# Non member watcher

[![Build Status](https://travis-ci.org/Undev/redmine_non_member_watcher.png)](https://travis-ci.org/Undev/redmine_non_member_watcher)
[![Code Climate](https://codeclimate.com/github/Undev/redmine_non_member_watcher.png)](https://codeclimate.com/github/Undev/redmine_non_member_watcher)

Redmine plugin that adds new system role "Non member watcher" and "Non member author".

This plugin allows to set permissions for watchers and issue authors that are not members of a
Expand Down
6 changes: 6 additions & 0 deletions config/database-mysql-travis.yml
@@ -0,0 +1,6 @@
# http://about.travis-ci.org/docs/user/database-setup/#MySQL
test:
adapter: mysql2
database: redmine
username: travis
encoding: utf8

0 comments on commit 7012e53

Please sign in to comment.