Skip to content

Commit d0a97d7

Browse files
committed
CI: Update ruby and PostgreSQL versions
1 parent 98c0d53 commit d0a97d7

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

.travis.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
sudo: required
2+
dist: focal
23
language: ruby
34
rvm:
4-
- "2.0.0"
5+
- "2.3.0"
56
- ruby-head
67
env:
7-
- "PGVERSION=10.0-1-linux-x64 PATH=\"/opt/PostgreSQL/10/bin:$PATH\""
8-
- "PGVERSION=9.3.19-1-linux-x64 PATH=\"/opt/PostgreSQL/9.3/bin:$PATH\""
8+
- "PGVERSION=14"
9+
- "PGVERSION=9.6"
910
before_install:
10-
- gem install bundler
11+
- gem install bundler --no-doc --conservative
1112
- bundle install
12-
# Download and install postgresql version to test against in /opt
13-
- |
14-
wget http://get.enterprisedb.com/postgresql/postgresql-$PGVERSION.run && \
15-
chmod +x postgresql-$PGVERSION.run && \
16-
sudo ./postgresql-$PGVERSION.run --extract-only 1 --mode unattended
13+
# Download and install postgresql version to test against in /opt (for non-cross compile only)
14+
- echo "deb http://apt.postgresql.org/pub/repos/apt/ ${TRAVIS_DIST}-pgdg main $PGVERSION" | sudo tee -a /etc/apt/sources.list.d/pgdg.list
15+
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
16+
- sudo apt -y update
17+
- sudo apt -y --allow-downgrades install postgresql-$PGVERSION libpq-dev
18+
- export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH
19+
1720
script: rake test

appveyor.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
image: Visual Studio 2019
2+
13
init:
24
- set PATH=C:/Ruby%ruby_version%/bin;c:/Program Files/Git/cmd;c:/Windows/system32;C:/Windows/System32/WindowsPowerShell/v1.0
35
- set RUBYOPT=--verbose
@@ -6,7 +8,7 @@ install:
68
- ver
79
- ruby --version
810
- gem --version
9-
- gem install bundler --conservative
11+
- gem install bundler --no-doc --conservative
1012
- bundle install
1113

1214
build_script:
@@ -19,7 +21,7 @@ test_script:
1921

2022
environment:
2123
matrix:
22-
- ruby_version: "25-x64"
23-
PGVER: 10
24-
- ruby_version: "22"
24+
- ruby_version: "27-x64"
25+
PGVER: 14
26+
- ruby_version: "24"
2527
PGVER: 10

0 commit comments

Comments
 (0)