-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
218 lines (210 loc) · 6.16 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
notifications:
webhooks:
- https://webhook.commit-email.info/
dist: bionic
services:
- docker
redmine_4_0: &redmine_4_0
install:
- bundle install
- bin/rails db:create
- bin/rails generate_secret_token
- bin/rails db:migrate
- bin/rails redmine:load_default_data REDMINE_LANG=en
- bin/rails redmine:plugins:migrate
- bin/rails db:structure:dump
script:
- RAILS_ENV=test bin/rails redmine:plugins:test
- bin/rails redmine:plugins:migrate NAME=full_text_search VERSION=0
- bin/rails redmine:plugins:migrate NAME=full_text_search
redmine_4_1: &redmine_4_1
install:
- bundle install
- bin/rails db:create
- bin/rails generate_secret_token
- bin/rails db:migrate
- bin/rails redmine:load_default_data REDMINE_LANG=en
- bin/rails redmine:plugins:migrate
script:
- RAILS_ENV=test bin/rails redmine:plugins:test
- bin/rails redmine:plugins:migrate NAME=full_text_search VERSION=0
- bin/rails redmine:plugins:migrate NAME=full_text_search
redmine_master: &redmine_master
install:
- bundle install
- bin/rails db:create
- bin/rails generate_secret_token
- bin/rails db:migrate
- bin/rails redmine:load_default_data REDMINE_LANG=en
- bin/rails redmine:plugins:migrate
script:
- RAILS_ENV=test bin/rails redmine:plugins:test
- bin/rails redmine:plugins:migrate NAME=full_text_search VERSION=0
- bin/rails redmine:plugins:migrate NAME=full_text_search
addons:
apt:
packages:
- chromium-chromedriver
- postgresql-client-11
matrix:
include:
- name: "Redmine 4.0 & MySQL & Ruby 2.4"
<<: *redmine_4_0
rvm: 2.4
env:
- REDMINE_VERSION=4.0
- REDMINE_BRANCH=4.0-stable
- RDBMS=mysql
- RDBMS_PORT=3306
- GROONGA_ADAPTER=mroonga
- name: "Redmine 4.0 & MySQL & Ruby 2.5"
<<: *redmine_4_0
rvm: 2.5
env:
- REDMINE_VERSION=4.0
- REDMINE_BRANCH=4.0-stable
- RDBMS=mysql
- RDBMS_PORT=3306
- GROONGA_ADAPTER=mroonga
- name: "Redmine 4.0 & MySQL & Ruby 2.6"
<<: *redmine_4_0
rvm: 2.6
env:
- REDMINE_VERSION=4.0
- REDMINE_BRANCH=4.0-stable
- RDBMS=mysql
- RDBMS_PORT=3306
- GROONGA_ADAPTER=mroonga
- name: "Redmine 4.0 & PostgreSQL & Ruby 2.4"
<<: *redmine_4_0
rvm: 2.4
env:
- REDMINE_VERSION=4.0
- REDMINE_BRANCH=4.0-stable
- RDBMS=postgresql
- RDBMS_PORT=5432
- GROONGA_ADAPTER=pgroonga
- DOCKER_TAG="latest-debian-11"
- name: "Redmine 4.0 & PostgreSQL & Ruby 2.5"
<<: *redmine_4_0
rvm: 2.5
env:
- REDMINE_VERSION=4.0
- REDMINE_BRANCH=4.0-stable
- RDBMS=postgresql
- RDBMS_PORT=5432
- GROONGA_ADAPTER=pgroonga
- DOCKER_TAG="latest-debian-11"
- name: "Redmine 4.0 & PostgreSQL & Ruby 2.6"
<<: *redmine_4_0
rvm: 2.6
env:
- REDMINE_VERSION=4.0
- REDMINE_BRANCH=4.0-stable
- RDBMS=postgresql
- RDBMS_PORT=5432
- GROONGA_ADAPTER=pgroonga
- DOCKER_TAG="latest-debian-11"
- name: "Redmine 4.1 & MySQL & Ruby 2.4"
<<: *redmine_4_1
rvm: 2.4
env:
- REDMINE_VERSION=4.1
- REDMINE_BRANCH=4.1-stable
- RDBMS=mysql
- RDBMS_PORT=3306
- GROONGA_ADAPTER=mroonga
- name: "Redmine 4.1 & MySQL & Ruby 2.5"
<<: *redmine_4_1
rvm: 2.5
env:
- REDMINE_VERSION=4.1
- REDMINE_BRANCH=4.1-stable
- RDBMS=mysql
- RDBMS_PORT=3306
- GROONGA_ADAPTER=mroonga
- name: "Redmine 4.1 & MySQL & Ruby 2.6"
<<: *redmine_4_1
rvm: 2.6
env:
- REDMINE_VERSION=4.1
- REDMINE_BRANCH=4.1-stable
- RDBMS=mysql
- RDBMS_PORT=3306
- GROONGA_ADAPTER=mroonga
- name: "Redmine 4.1 & PostgreSQL & Ruby 2.4"
<<: *redmine_4_1
rvm: 2.4
env:
- REDMINE_VERSION=4.1
- REDMINE_BRANCH=4.1-stable
- RDBMS=postgresql
- RDBMS_PORT=5432
- GROONGA_ADAPTER=pgroonga
- DOCKER_TAG="latest-debian-11"
- name: "Redmine 4.1 & PostgreSQL & Ruby 2.5"
<<: *redmine_4_1
rvm: 2.5
env:
- REDMINE_VERSION=4.1
- REDMINE_BRANCH=4.1-stable
- RDBMS=postgresql
- RDBMS_PORT=5432
- GROONGA_ADAPTER=pgroonga
- DOCKER_TAG="latest-debian-11"
- name: "Redmine 4.1 & PostgreSQL & Ruby 2.6"
<<: *redmine_4_1
rvm: 2.6
env:
- REDMINE_VERSION=4.1
- REDMINE_BRANCH=4.1-stable
- RDBMS=postgresql
- RDBMS_PORT=5432
- GROONGA_ADAPTER=pgroonga
- DOCKER_TAG="latest-debian-11"
- name: "Redmine master & MySQL"
<<: *redmine_master
env:
- REDMINE_VERSION=master
- REDMINE_BRANCH=master
- RDBMS=mysql
- RDBMS_PORT=3306
- GROONGA_ADAPTER=mroonga
- name: "Redmine master & PostgreSQL"
<<: *redmine_master
env:
- REDMINE_VERSION=master
- REDMINE_BRANCH=master
- RDBMS=postgresql
- RDBMS_PORT=5432
- GROONGA_ADAPTER=pgroonga
- DOCKER_TAG="latest-debian-11"
before_install:
- sudo apt purge -y google-chrome-stable
- docker run
--detach
-p ${RDBMS_PORT}:${RDBMS_PORT}
groonga/${GROONGA_ADAPTER}:${DOCKER_TAG:-latest}
- cd ..
- git clone
--depth 1
--branch ${REDMINE_BRANCH}
https://github.com/redmine/redmine.git
- cd redmine
- |
sed \
-i'' \
-e 's/using: :chrome,/using: :headless_chrome,/g' \
test/application_system_test_case.rb
- svnadmin create tmp/test/subversion_repository
- zcat test/fixtures/repositories/subversion_repository.dump.gz |
svnadmin load tmp/test/subversion_repository
- tar xf test/fixtures/repositories/git_repository.tar.gz -C tmp/test
- cd plugins
- ln -s ../../redmine_full_text_search ./full_text_search
- cd ../
- cp plugins/full_text_search/config/database.yml.example.${REDMINE_VERSION}.${RDBMS}
config/database.yml
- cp plugins/full_text_search/config/initializers/schema_format.rb
config/initializers/schema_format.rb
- unset BUNDLE_GEMFILE