File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,17 @@ language: go
4
4
matrix :
5
5
include :
6
6
- name : " Postgres 11"
7
+ env :
8
+ - PGDB=11
7
9
addons :
8
10
postgresql : " 11"
9
11
apt :
10
12
packages :
11
13
- postgresql-11
12
14
- postgresql-client-11
13
15
- name : " Postgres 10"
16
+ env :
17
+ - PGDB=10
14
18
addons :
15
19
postgresql : " 10"
16
20
apt :
@@ -29,8 +33,8 @@ before_install:
29
33
- wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.3.deb && sudo dpkg -i --force-confnew elasticsearch-6.2.3.deb
30
34
- sudo service elasticsearch start
31
35
- sudo sed -i -e '/local.*peer/s/postgres/all/' -e 's/peer\|md5/trust/g' /etc/postgresql/*/main/pg_hba.conf
32
- - sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/10 /main/postgresql.conf
33
- - sudo service postgresql restart 10
36
+ - sudo sed -i 's/port = 5433/port = 5432/' /etc/postgresql/$PGDB /main/postgresql.conf
37
+ - sudo service postgresql restart $PGDB
34
38
- sleep 10
35
39
36
40
before_script :
You can’t perform that action at this time.
0 commit comments