forked from redmine-git-hosting/redmine_git_hosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (48 loc) · 1.13 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
language: ruby
sudo: required
cache: bundler
rvm:
- 2.6.3
- 2.4.6
- 2.3.8
gemfile:
- Gemfile
services:
- mysql
- postgresql
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=4.0-stable DATABASE_ADAPTER=mysql USE_SVN=true
- REDMINE_VERSION=4.0-stable DATABASE_ADAPTER=postgresql USE_SVN=true
before_install:
- cd ../..
- sudo apt-get update -qq
- ./jbox-web/redmine_git_hosting/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_git_hosting:ci:all