forked from jbox-web/redmine_default_members
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
56 lines (55 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
language: ruby
sudo: required
cache: bundler
rvm:
- 2.5.3
- 2.4.5
- 2.3.8
gemfile:
- Gemfile
branches:
only:
- devel
- /^fix_.*$/
- /^feat_.*$/
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=3.4-stable USE_SVN=true DATABASE_ADAPTER=mysql
- REDMINE_VERSION=3.4-stable USE_SVN=true DATABASE_ADAPTER=postgresql
- REDMINE_VERSION=3.3-stable USE_SVN=true DATABASE_ADAPTER=mysql
- REDMINE_VERSION=3.3-stable USE_SVN=true DATABASE_ADAPTER=postgresql
- REDMINE_VERSION=3.4.6 DATABASE_ADAPTER=mysql
- REDMINE_VERSION=3.4.6 DATABASE_ADAPTER=postgresql
- REDMINE_VERSION=3.3.8 DATABASE_ADAPTER=mysql
- REDMINE_VERSION=3.3.8 DATABASE_ADAPTER=postgresql
matrix:
allow_failures:
- rvm: 2.5.3
- rvm: 2.4.5
before_install:
- cd ../..
- sudo apt-get update -qq
- ./jbox-web/redmine_default_members/contrib/travis/install_redmine.sh
- cd redmine
- echo $(pwd)
- export BUNDLE_GEMFILE=$PWD/Gemfile
before_script:
- echo $(pwd)
- mysql -e 'create database redmine;'
- psql -c 'create database redmine;' -U postgres
- bundle exec rake generate_secret_token
- bundle exec rake db:migrate
- bundle exec rake redmine:load_default_data
- bundle exec rake redmine:plugins:migrate
- bundle exec rake db:test:prepare
script:
- bundle exec rake redmine_default_members:ci:all