forked from Restream/redmine_custom_reports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (55 loc) · 1.62 KB
/
.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
language: ruby
services:
- mysql
- postgresql
rvm:
- 1.8.7
- 1.9.3
- 2.0.0
gemfile:
- $REDMINE_PATH/Gemfile
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.4.4 DB=mysql
- REDMINE_VER=2.5.0 DB=mysql
- REDMINE_VER=2.1.6 DB=postgresql
- REDMINE_VER=2.2.4 DB=postgresql
- REDMINE_VER=2.3.3 DB=postgresql
- REDMINE_VER=2.4.4 DB=postgresql
- REDMINE_VER=2.5.0 DB=postgresql
matrix:
exclude:
- rvm: 2.0.0
env: REDMINE_VER=2.1.6 DB=mysql
gemfile: $REDMINE_PATH/Gemfile
- rvm: 2.0.0
env: REDMINE_VER=2.2.4 DB=mysql
gemfile: $REDMINE_PATH/Gemfile
- rvm: 1.8.7
env: REDMINE_VER=2.3.3 DB=mysql
gemfile: $REDMINE_PATH/Gemfile
- rvm: 2.0.0
env: REDMINE_VER=2.1.6 DB=postgresql
gemfile: $REDMINE_PATH/Gemfile
- rvm: 2.0.0
env: REDMINE_VER=2.2.4 DB=postgresql
gemfile: $REDMINE_PATH/Gemfile
- rvm: 1.8.7
env: REDMINE_VER=2.3.3 DB=postgresql
gemfile: $REDMINE_PATH/Gemfile
before_install:
- export PLUGIN_NAME=redmine_custom_reports
- 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
- export DBVER=`if [ "$TRAVIS_RUBY_VERSION" = "1.8.7" ] && [ "$DB" = "mysql" ]; then echo "mysql-1.8.7"; else echo "$DB"; fi`
- cp config/database-$DBVER-travis.yml $REDMINE_PATH/config/database.yml
- cd $REDMINE_PATH
before_script:
- rake db:create
- rake db:migrate
- rake redmine:plugins:migrate
script:
- rake redmine:plugins:test NAME=$PLUGIN_NAME