Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added travis configuration and codeclimate badge
- Loading branch information
1 parent
794cae4
commit 7012e53
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# http://about.travis-ci.org/docs/user/database-setup/#MySQL | ||
test: | ||
adapter: mysql2 | ||
database: redmine | ||
username: travis | ||
encoding: utf8 |