Skip to content

Commit 99af95f

Browse files
authored
Merge pull request #1041 from otan-cockroach/libpq
.travis.yml: fix CI
2 parents d2b13db + 62fa4b3 commit 99af95f

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.travis.sh

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
#!/bin/bash
22

3-
set -eu
3+
set -eux
44

55
client_configure() {
66
sudo chmod 600 $PQSSLCERTTEST_PATH/postgresql.key
77
}
88

99
pgdg_repository() {
10-
local sourcelist='sources.list.d/postgresql.list'
11-
1210
curl -sS 'https://www.postgresql.org/media/keys/ACCC4CF8.asc' | sudo apt-key add -
13-
echo deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main $PGVERSION | sudo tee "/etc/apt/$sourcelist"
14-
sudo apt-get -o Dir::Etc::sourcelist="$sourcelist" -o Dir::Etc::sourceparts='-' -o APT::Get::List-Cleanup='0' update
11+
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
12+
sudo apt-get update
1513
}
1614

1715
postgresql_configure() {
@@ -51,10 +49,10 @@ postgresql_configure() {
5149
}
5250

5351
postgresql_install() {
54-
xargs sudo apt-get -y -o Dpkg::Options::='--force-confdef' -o Dpkg::Options::='--force-confnew' install <<-packages
52+
xargs sudo apt-get -y install <<-packages
5553
postgresql-$PGVERSION
54+
postgresql-client-$PGVERSION
5655
postgresql-server-dev-$PGVERSION
57-
postgresql-contrib-$PGVERSION
5856
packages
5957
}
6058

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ language: go
33
go:
44
- 1.14.x
55
- 1.15.x
6-
- master
6+
- 1.16.x
77

88
sudo: true
99

0 commit comments

Comments
 (0)