forked from scrum2b/scrum2b
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
56 lines (55 loc) · 1.44 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
release: 1.0.6
services:
- mysql
- postgresql
rvm:
- 1.9.3
- 2.0.0
- 2.2.4
env:
- REDMINE_VER=2.3.3 DB=postgresql
- REDMINE_VER=2.5.1 DB=postgresql
- REDMINE_VER=3.0.7 DB=postgresql
- REDMINE_VER=3.1.4 DB=postgresql
- REDMINE_VER=3.2.1 DB=postgresql
matrix:
matrix:
allow_failures:
- rvm: jruby-18mode
- rvm: jruby-19mode
exclude:
- rvm: 1.9.3
env: REDMINE_VER=3.0.7 DB=postgresql
- rvm: 1.9.3
env: REDMINE_VER=3.1.4 DB=postgresql
- rvm: 1.9.3
env: REDMINE_VER=3.2.1 DB=postgresql
- rvm: 2.0.0
env: REDMINE_VER=3.0.7 DB=postgresql
- rvm: 2.0.0
env: REDMINE_VER=3.1.4 DB=postgresql
- rvm: 2.0.0
env: REDMINE_VER=3.2.1 DB=postgresql
- rvm: 2.2.4
env: REDMINE_VER=2.5.1 DB=postgresql
- rvm: 2.2.4
env: REDMINE_VER=2.3.3 DB=postgresql
install: echo skip bundle install
before_script:
- sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'DROP DATABASE IF EXISTS scrum2b;'
-U postgres; fi"
- sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'create database scrum2b;' -U
postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS scrum2b;';
fi"
script:
- export WORKSPACE=`pwd`/workspace
- export PATH_TO_SCRUM2B=`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 -u || exit 1