.travis.yml in pg-ldap-sync-0.2.0 vs .travis.yml in pg-ldap-sync-0.3.0
- old
+ new
@@ -1,17 +1,20 @@
sudo: required
+dist: focal
language: ruby
rvm:
- - "2.0.0"
+ - "2.4.0"
- ruby-head
env:
- - "PGVERSION=10.0-1-linux-x64 PATH=\"/opt/PostgreSQL/10/bin:$PATH\""
- - "PGVERSION=9.3.19-1-linux-x64 PATH=\"/opt/PostgreSQL/9.3/bin:$PATH\""
+ - "PGVERSION=14"
+ - "PGVERSION=9.6"
before_install:
- - gem install bundler
+ - gem install bundler --no-doc --conservative
- bundle install
- # Download and install postgresql version to test against in /opt
- - |
- wget http://get.enterprisedb.com/postgresql/postgresql-$PGVERSION.run && \
- chmod +x postgresql-$PGVERSION.run && \
- sudo ./postgresql-$PGVERSION.run --extract-only 1 --mode unattended
+ # 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