This repository has been archived on 2023-12-11. You can view files and clone it, but cannot push or open issues or pull requests.
pgls/.travis.yml
2022-01-17 14:04:15 +01:00

21 lines
705 B
YAML

sudo: required
dist: focal
language: ruby
rvm:
- "2.4.0"
- ruby-head
env:
- "PGVERSION=14"
- "PGVERSION=9.6"
before_install:
- gem install bundler --no-doc --conservative
- bundle install
# Download and install postgresql version to test against in /opt (for non-cross compile only)
- echo "deb http://apt.postgresql.org/pub/repos/apt/ ${TRAVIS_DIST}-pgdg main $PGVERSION" | sudo tee -a /etc/apt/sources.list.d/pgdg.list
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- sudo apt -y update
- sudo apt -y --allow-downgrades install postgresql-$PGVERSION libpq-dev
- export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH
script: rake test