Skip to content

Commit

Permalink
Merge pull request #513 from sgotti/semaphore_test_postgres11
Browse files Browse the repository at this point in the history
tests: test also postgres 11 on semaphore
  • Loading branch information
sgotti committed Jul 3, 2018
2 parents c9d8c83 + 672fa22 commit bc5813d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/semaphore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ curl -L https://releases.hashicorp.com/consul/1.0.6/consul_1.0.6_linux_amd64.zip
unzip consul_1.0.6_linux_amd64.zip
popd

# Install postgreSQL 9.5 and 9.6
# Install postgreSQL 9.5, 9.6, 10 and 11
# TODO(sgotti) remove this when semaphoreci images will have this already installed
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'
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'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresql-9.5 postgresql-9.6 postgresql-10
sudo apt-get -y install postgresql-9.5 postgresql-9.6 postgresql-10 postgresql-11

# Precompile stdlib with cgo disable to speedup builds
sudo -E CGO_ENABLED=0 go install -a -installsuffix cgo std
Expand Down Expand Up @@ -59,3 +60,7 @@ export PATH=/usr/lib/postgresql/9.6/bin/:$OLDPATH ; ./test
# Test with postgresql 10
echo "===== Testing with postgreSQL 10 ====="
export PATH=/usr/lib/postgresql/10/bin/:$OLDPATH ; ./test

# Test with postgresql 11
echo "===== Testing with postgreSQL 11 ====="
export PATH=/usr/lib/postgresql/11/bin/:$OLDPATH ; ./test

0 comments on commit bc5813d

Please sign in to comment.