CI: Update ruby and PostgreSQL versions

This commit is contained in:
Lars Kanis 2022-01-17 13:38:05 +01:00
parent 98c0d5328f
commit bf1137ff11
2 changed files with 18 additions and 13 deletions

View File

@ -1,17 +1,20 @@
sudo: required sudo: required
dist: focal
language: ruby language: ruby
rvm: rvm:
- "2.0.0" - "2.4.0"
- ruby-head - ruby-head
env: env:
- "PGVERSION=10.0-1-linux-x64 PATH=\"/opt/PostgreSQL/10/bin:$PATH\"" - "PGVERSION=14"
- "PGVERSION=9.3.19-1-linux-x64 PATH=\"/opt/PostgreSQL/9.3/bin:$PATH\"" - "PGVERSION=9.6"
before_install: before_install:
- gem install bundler - gem install bundler --no-doc --conservative
- bundle install - bundle install
# Download and install postgresql version to test against in /opt # 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 http://get.enterprisedb.com/postgresql/postgresql-$PGVERSION.run && \ - wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
chmod +x postgresql-$PGVERSION.run && \ - sudo apt -y update
sudo ./postgresql-$PGVERSION.run --extract-only 1 --mode unattended - sudo apt -y --allow-downgrades install postgresql-$PGVERSION libpq-dev
- export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH
script: rake test script: rake test

View File

@ -1,3 +1,5 @@
image: Visual Studio 2019
init: init:
- set PATH=C:/Ruby%ruby_version%/bin;c:/Program Files/Git/cmd;c:/Windows/system32;C:/Windows/System32/WindowsPowerShell/v1.0 - set PATH=C:/Ruby%ruby_version%/bin;c:/Program Files/Git/cmd;c:/Windows/system32;C:/Windows/System32/WindowsPowerShell/v1.0
- set RUBYOPT=--verbose - set RUBYOPT=--verbose
@ -6,7 +8,7 @@ install:
- ver - ver
- ruby --version - ruby --version
- gem --version - gem --version
- gem install bundler --conservative - gem install bundler --no-doc --conservative
- bundle install - bundle install
build_script: build_script:
@ -19,7 +21,7 @@ test_script:
environment: environment:
matrix: matrix:
- ruby_version: "25-x64" - ruby_version: "27-x64"
PGVER: 10 PGVER: 13
- ruby_version: "22" - ruby_version: "24"
PGVER: 10 PGVER: 10