-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (35 loc) · 1.02 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
---
language: ruby
release: 1.0.6
sudo: false
services:
- mysql
- postgresql
rvm:
- 2.0.0
env:
- REDMINE_VER=3.0.3 DB=postgresql CLUSTER=CLUSTER1
- REDMINE_VER=3.0.3 DB=postgresql CLUSTER=CLUSTER2
- REDMINE_VER=3.0.3 DB=mysql CLUSTER=CLUSTER1
- REDMINE_VER=3.0.3 DB=mysql CLUSTER=CLUSTER2
matrix:
allow_failures:
exclude:
install: echo skip bundle install
before_script:
- sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'DROP DATABASE IF EXISTS backlogs;'
-U postgres; fi"
- sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'create database backlogs;' -U
postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS backlogs;';
fi"
script:
- export WORKSPACE=`pwd`/workspace
- export PATH_TO_BACKLOGS=`pwd`
- export PATH_TO_REDMINE=$WORKSPACE/redmine
- mkdir $WORKSPACE
- cp config/database.yml.travis $WORKSPACE/database.yml
- bash -x ./redmine_install.sh -r || exit 1
- bash -x ./redmine_install.sh -i || exit 1
- bash -x ./redmine_install.sh -t || exit 1
- bash -x ./redmine_install.sh -u || exit 1