forked from fernandokosh/redmine_time_tracker
-
Notifications
You must be signed in to change notification settings - Fork 32
/
.travis.yml
executable file
·67 lines (59 loc) · 1.5 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
64
65
66
67
language: ruby
sudo: false
branches:
only:
- master
- travis
rvm:
- 1.9.3
- 2.0.0
- 2.1.7
- 2.2.3
env:
global:
- PLUGIN=redmine_time_tracker
- REDMINE=test_redmine
matrix:
- REDMINE_VERSION=2.4.0 TRACE=--trace
- REDMINE_VERSION=2.4.5 TRACE=--trace
- REDMINE_VERSION=2.5.3 TRACE=--trace
- REDMINE_VERSION=2.6.3 TRACE=--trace
- REDMINE_VERSION=2.6.4
- REDMINE_VERSION=2.6.6
- REDMINE_VERSION=3.0.4 TRACE=--trace
- REDMINE_VERSION=3.1.0 TRACE=--trace
matrix:
exclude:
# Redmine before 2.6.6 will not run on Ruby 2.2
- rvm: 2.2.3
env: REDMINE_VERSION=2.4.0 TRACE=--trace
- rvm: 2.2.3
env: REDMINE_VERSION=2.4.5 TRACE=--trace
- rvm: 2.2.3
env: REDMINE_VERSION=2.5.3 TRACE=--trace
- rvm: 2.2.3
env: REDMINE_VERSION=2.6.3 TRACE=--trace
- rvm: 2.2.3
env: REDMINE_VERSION=2.6.4
# Redmine before 2.5 will not run on Ruby 2.1
- rvm: 2.1.7
env: REDMINE_VERSION=2.4.0 TRACE=--trace
- rvm: 2.1.7
env: REDMINE_VERSION=2.4.5 TRACE=--trace
before_install:
- . .travis/clone_redmine.sh
- gem install bundler
gemfile: test_redmine/Gemfile
install:
- cd $PATH_TO_REDMINE
- bundle install --jobs=3 --retry=3 --path=$PATH_TO_PLUGIN/vendor/bundle
- bundle exec rake $TRACE db:migrate
- bundle exec rake $TRACE redmine:load_default_data REDMINE_LANG=en
- bundle exec rake $TRACE $GENERATE_SECRET
- bundle exec rake $TRACE $MIGRATE_PLUGINS
script:
- cd $PATH_TO_REDMINE
- bundle exec rake $TRACE redmine:plugins:test NAME=$PLUGIN
cache:
directories:
- vendor/bundle