forked from cforce/redmine_charts
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
43 lines (42 loc) · 1.26 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
branches:
only:
- master
- develop
language: ruby
rvm:
- 1.9.3
- 2.0.0
env:
- REDMINE_VER=2.2.4 DB=mysql
- REDMINE_VER=2.2.4 DB=postgresql
- REDMINE_VER=2.3.0 DB=mysql
- REDMINE_VER=2.3.0 DB=postgresql
matrix:
allow_failures:
- rvm: jruby-19mode
exclude: # anyone is free to adopt a build, until then, no builds that don't have a maintainer
- rvm: 2.0.0
env: REDMINE_VER=2.2.4 DB=mysql
- rvm: 2.0.0
env: REDMINE_VER=2.2.4 DB=postgresql
install: "echo skip bundle install"
before_script:
- sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'DROP DATABASE IF EXISTS charts;'
-U postgres; fi"
- sh -c "if [ '$DB' = 'postgresql' ]; then psql -c 'create database charts;' -U
postgres; fi"
- sh -c "if [ '$DB' = 'mysql' ]; then mysql -e 'create database IF NOT EXISTS charts;';
fi"
script:
- export RAILS_ENV=test
- export TESTSPACE=`pwd`/testspace
- export NAME_OF_PLUGIN=redmine_charts
- export PATH_TO_PLUGIN=`pwd`
- export PATH_TO_REDMINE=$TESTSPACE/redmine
- export PATH_TO_TESTER=`pwd`/redmine_tester.sh
- mkdir $TESTSPACE
- cp config/database.yml.travis $TESTSPACE/database.yml
- bash -x ./redmine_install.sh -c
- bash -x ./redmine_install.sh -i
- bash -x ./redmine_install.sh -t
- bash -x ./redmine_install.sh -u