forked from teleological/redmine_stealth
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
39 lines (30 loc) · 871 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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.5 DB=mysql
- REDMINE_VER=3.3.2 DB=mysql
- REDMINE_VER=3.1.7 DB=postgresql
- REDMINE_VER=3.2.5 DB=postgresql
- REDMINE_VER=3.3.2 DB=postgresql
before_install:
- export PLUGIN_NAME=redmine_stealth
- 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
- cd $REDMINE_PATH
install:
- bundle install
before_script:
- bundle exec rake db:create
- bundle exec rake db:migrate
- bundle exec rake redmine:plugins:migrate
script:
- bundle exec rake redmine:plugins:test NAME=$PLUGIN_NAME RUBYOPT="-W0"