forked from matsukei/redmine_out_of_band_auth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (35 loc) · 918 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
39
40
41
42
43
language: ruby
# http://www.redmine.org/projects/redmine/wiki/RedmineInstall
rvm:
- 1.9.3
- 2.0.0
- 2.1
- 2.2
- 2.3
- 2.4
env:
- REDMINE_REPOS=branches/3.4-stable
- REDMINE_REPOS=branches/3.3-stable
- REDMINE_REPOS=branches/3.2-stable
gemfile:
- $REDMINE_PATH/Gemfile
matrix:
allow_failures:
- rvm: 2.4
before_install:
- export PLUGIN_NAME=redmine_out_of_band_auth
- export DB=sqlite
- export NOKOGIRI_USE_SYSTEM_LIBRARIES=true
- export REDMINE_PATH=$HOME/redmine
- svn co http://svn.redmine.org/redmine/$REDMINE_REPOS $REDMINE_PATH
- ln -s $TRAVIS_BUILD_DIR $REDMINE_PATH/plugins/$PLUGIN_NAME
- cp test/database.travis.yml $REDMINE_PATH/config/database.yml
- cd $REDMINE_PATH
before_script:
- bundle exec rake db:migrate
- bundle exec rake redmine:plugins:migrate
script:
- bundle exec rake redmine:plugins:test NAME=$PLUGIN_NAME
branches:
only:
- master