Skip to content

Commit bc5813d

Browse files
committed
Merge pull request #513 from sgotti/semaphore_test_postgres11
tests: test also postgres 11 on semaphore
2 parents c9d8c83 + 672fa22 commit bc5813d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

scripts/semaphore.sh

+7-2
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ curl -L https://releases.hashicorp.com/consul/1.0.6/consul_1.0.6_linux_amd64.zip
2323
unzip consul_1.0.6_linux_amd64.zip
2424
popd
2525

26-
# Install postgreSQL 9.5 and 9.6
26+
# Install postgreSQL 9.5, 9.6, 10 and 11
2727
# TODO(sgotti) remove this when semaphoreci images will have this already installed
2828
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 10" > /etc/apt/sources.list.d/pgdg.list'
29+
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main 11" > /etc/apt/sources.list.d/pgdg.list'
2930
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
3031
sudo apt-get update
31-
sudo apt-get -y install postgresql-9.5 postgresql-9.6 postgresql-10
32+
sudo apt-get -y install postgresql-9.5 postgresql-9.6 postgresql-10 postgresql-11
3233

3334
# Precompile stdlib with cgo disable to speedup builds
3435
sudo -E CGO_ENABLED=0 go install -a -installsuffix cgo std
@@ -59,3 +60,7 @@ export PATH=/usr/lib/postgresql/9.6/bin/:$OLDPATH ; ./test
5960
# Test with postgresql 10
6061
echo "===== Testing with postgreSQL 10 ====="
6162
export PATH=/usr/lib/postgresql/10/bin/:$OLDPATH ; ./test
63+
64+
# Test with postgresql 11
65+
echo "===== Testing with postgreSQL 11 ====="
66+
export PATH=/usr/lib/postgresql/11/bin/:$OLDPATH ; ./test

0 commit comments

Comments
 (0)