forked from jfqd/redmine_helpdesk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
51 lines (51 loc) · 1.39 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
language: ruby
rvm:
- 2.5
- 2.6
- jruby
services:
- mysql
- postgresql
env:
global:
- REDMINE_LANG=en
- MYSQL_DATABASE=redmine
- MYSQL_HOST=127.0.0.1
- MYSQL_PORT=3306
- MYSQL_USER=root
- MYSQL_PASSWORD=
- POSTGRES_DATABASE=redmine
- POSTGRES_USER=postgres
matrix:
- REDMINE_VERSION=4.0.5 DATABASE_ADAPTER=mysql
- REDMINE_VERSION=4.0.5 DATABASE_ADAPTER=postgresql
matrix:
allow_failures: # Incomplete ActiveRecord 4.2 support in jruby
- rvm: 2.6
env: REDMINE_VERSION=4.0.5 DATABASE_ADAPTER=mysql
- rvm: 2.6
env: REDMINE_VERSION=4.0.5 DATABASE_ADAPTER=postgresql
- rvm: jruby
env: REDMINE_VERSION=4.0.5 DATABASE_ADAPTER=mysql
- rvm: jruby
env: REDMINE_VERSION=4.0.5 DATABASE_ADAPTER=postgresql
addons:
code_climate:
repo_token:
secure: "SAyz/KNRQQC1T2oGNUxbDceBcoaL/IxvEmeKEIR3iivj3RMJi2Nm8v5B2Su9MhQBegi2mH70ypgkTPmGh69tSONf1sqkkCAxsZnIqihl1Ai+dwM2KlBLGw/k+IG9/xD1+hgQiO06OKZMPO+Kj9X28mMqJ75YVKGE4alr1mfo2NM="
before_install:
- rake helpdesk:redmine:install
- cd test/app
- export BUNDLE_GEMFILE=Gemfile
before_script:
- echo $(pwd)
- sudo service mysql start
- echo $(ps -Af | grep mysqld)
- export RAILS_ENV=test
- mysql -e 'create database redmine;'
- psql -c 'create database redmine;' -U postgres
- bundle exec rake generate_secret_token
- export RAILS_ENV=test
- bundle exec rake db:migrate
script:
- bundle exec rake helpdesk:ci