forked from paginagmbh/redmine_lightbox2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added travis-ci configuration and codeclimate status
- Loading branch information
1 parent
c160de0
commit d059e2a
Showing
4 changed files
with
66 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,52 @@ | ||
language: ruby | ||
|
||
services: | ||
- mysql | ||
- postgresql | ||
|
||
rvm: | ||
- 1.9.3 | ||
- 2.0.0 | ||
|
||
env: | ||
- REDMINE_VER=2.1.6 DB=mysql | ||
- REDMINE_VER=2.2.4 DB=mysql | ||
- REDMINE_VER=2.3.3 DB=mysql | ||
- REDMINE_VER=2.1.6 DB=postgresql | ||
- REDMINE_VER=2.2.4 DB=postgresql | ||
- REDMINE_VER=2.3.3 DB=postgresql | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
matrix: | ||
exclude: | ||
- rvm: 2.0.0 | ||
env: REDMINE_VER=2.1.6 DB=mysql | ||
- rvm: 2.0.0 | ||
env: REDMINE_VER=2.2.4 DB=mysql | ||
- rvm: 2.0.0 | ||
env: REDMINE_VER=2.1.6 DB=postgresql | ||
- rvm: 2.0.0 | ||
env: REDMINE_VER=2.2.4 DB=postgresql | ||
|
||
before_install: | ||
- export PLUGIN_NAME=redmine_lightbox | ||
- 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 |
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,5 @@ | ||
# http://about.travis-ci.org/docs/user/database-setup/#PostgreSQL | ||
test: | ||
adapter: postgresql | ||
database: redmine | ||
username: postgres |