@@ -14,6 +14,30 env: | |||||
14 | - "SUITE=functionals DB=postgresql" |
|
14 | - "SUITE=functionals DB=postgresql" | |
15 | - "SUITE=integration DB=postgresql" |
|
15 | - "SUITE=integration DB=postgresql" | |
16 | - "SUITE=ui DB=postgresql" |
|
16 | - "SUITE=ui DB=postgresql" | |
|
17 | - "SUITE=units DB=postgresql-8.4" | |||
|
18 | - "SUITE=functionals DB=postgresql-8.4" | |||
|
19 | - "SUITE=integration DB=postgresql-8.4" | |||
|
20 | - "SUITE=ui DB=postgresql-8.4" | |||
|
21 | - "SUITE=units DB=postgresql-9.1" | |||
|
22 | - "SUITE=functionals DB=postgresql-9.1" | |||
|
23 | - "SUITE=integration DB=postgresql-9.1" | |||
|
24 | - "SUITE=ui DB=postgresql-9.1" | |||
|
25 | - "SUITE=units DB=postgresql-9.2" | |||
|
26 | - "SUITE=functionals DB=postgresql-9.2" | |||
|
27 | - "SUITE=integration DB=postgresql-9.2" | |||
|
28 | - "SUITE=ui DB=postgresql-9.2" | |||
|
29 | - "SUITE=units DB=postgresql-9.3" | |||
|
30 | - "SUITE=functionals DB=postgresql-9.3" | |||
|
31 | - "SUITE=integration DB=postgresql-9.3" | |||
|
32 | - "SUITE=ui DB=postgresql-9.3" | |||
|
33 | - "SUITE=units DB=postgresql-9.4" | |||
|
34 | - "SUITE=functionals DB=postgresql-9.4" | |||
|
35 | - "SUITE=integration DB=postgresql-9.4" | |||
|
36 | - "SUITE=ui DB=postgresql-9.4" | |||
|
37 | - "SUITE=units DB=postgresql-9.5" | |||
|
38 | - "SUITE=functionals DB=postgresql-9.5" | |||
|
39 | - "SUITE=integration DB=postgresql-9.5" | |||
|
40 | - "SUITE=ui DB=postgresql-9.5" | |||
17 | - "SUITE=units DB=mysql-5.5" |
|
41 | - "SUITE=units DB=mysql-5.5" | |
18 | - "SUITE=functionals DB=mysql-5.5" |
|
42 | - "SUITE=functionals DB=mysql-5.5" | |
19 | - "SUITE=integration DB=mysql-5.5" |
|
43 | - "SUITE=integration DB=mysql-5.5" | |
@@ -51,6 +75,12 matrix: | |||||
51 | - env: "SUITE=units DB=mysql-5.7-dmr" |
|
75 | - env: "SUITE=units DB=mysql-5.7-dmr" | |
52 | - env: "SUITE=functionals DB=mysql-5.7-dmr" |
|
76 | - env: "SUITE=functionals DB=mysql-5.7-dmr" | |
53 | - env: "SUITE=integration DB=mysql-5.7-dmr" |
|
77 | - env: "SUITE=integration DB=mysql-5.7-dmr" | |
|
78 | - env: "SUITE=ui DB=postgresql-8.4" | |||
|
79 | - env: "SUITE=ui DB=postgresql-9.1" | |||
|
80 | - env: "SUITE=ui DB=postgresql-9.2" | |||
|
81 | - env: "SUITE=ui DB=postgresql-9.3" | |||
|
82 | - env: "SUITE=ui DB=postgresql-9.4" | |||
|
83 | - env: "SUITE=ui DB=postgresql-9.5" | |||
54 | - rvm: jruby-9.0.0.0 |
|
84 | - rvm: jruby-9.0.0.0 | |
55 | # SCM tests fail randomly due to IO.popen(). |
|
85 | # SCM tests fail randomly due to IO.popen(). | |
56 | # http://www.redmine.org/issues/19091 |
|
86 | # http://www.redmine.org/issues/19091 | |
@@ -95,6 +125,21 before_install: | |||||
95 | fi |
|
125 | fi | |
96 | elif [[ $DB =~ postgresql ]] ; |
|
126 | elif [[ $DB =~ postgresql ]] ; | |
97 | then |
|
127 | then | |
|
128 | if [[ $DB =~ postgresql- ]] ; | |||
|
129 | then | |||
|
130 | PG_VER=`echo $DB | sed -e 's/postgresql-//'` ; | |||
|
131 | sudo service postgresql stop ; | |||
|
132 | sudo apt-get -y -qq --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common ; | |||
|
133 | sudo rm -rf /var/lib/postgresql ; | |||
|
134 | sudo sh -c "echo deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main ${PG_VER} >> /etc/apt/sources.list.d/pgdg.list" ; | |||
|
135 | wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - ; | |||
|
136 | sudo apt-get update -qq ; | |||
|
137 | sudo apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::="--force-confnew" install postgresql-${PG_VER} postgresql-contrib-${PG_VER} postgresql-server-dev-${PG_VER} ; | |||
|
138 | echo "local all all trust" | sudo tee /etc/postgresql/${PG_VER}/main/pg_hba.conf ; | |||
|
139 | echo "host all all 127.0.0.1/32 trust" | sudo tee -a /etc/postgresql/${PG_VER}/main/pg_hba.conf ; | |||
|
140 | echo "host all all ::1/128 trust" | sudo tee -a /etc/postgresql/${PG_VER}/main/pg_hba.conf ; | |||
|
141 | sudo service postgresql restart ; | |||
|
142 | fi ; | |||
98 | psql --version ; |
|
143 | psql --version ; | |
99 | psql -c "SHOW SERVER_VERSION" -U postgres ; |
|
144 | psql -c "SHOW SERVER_VERSION" -U postgres ; | |
100 | psql -c "SHOW SERVER_ENCODING" -U postgres ; |
|
145 | psql -c "SHOW SERVER_ENCODING" -U postgres ; |
@@ -67,7 +67,7 file 'config/database.yml' do | |||||
67 | dev_conf['password'] = 'jenkins' |
|
67 | dev_conf['password'] = 'jenkins' | |
68 | end |
|
68 | end | |
69 | test_conf = dev_conf.merge('database' => test_db_name) |
|
69 | test_conf = dev_conf.merge('database' => test_db_name) | |
70 |
when |
|
70 | when /postgresql/ | |
71 | dev_conf = {'adapter' => 'postgresql', 'database' => dev_db_name, |
|
71 | dev_conf = {'adapter' => 'postgresql', 'database' => dev_db_name, | |
72 | 'host' => 'localhost'} |
|
72 | 'host' => 'localhost'} | |
73 | if ENV['RUN_ON_NOT_OFFICIAL'] |
|
73 | if ENV['RUN_ON_NOT_OFFICIAL'] |
General Comments 0
You need to be logged in to leave comments.
Login now