2015-08-29 09:54:46 +00:00
|
|
|
sudo: required
|
2021-10-01 16:11:15 +00:00
|
|
|
dist: focal
|
2015-08-29 09:54:46 +00:00
|
|
|
services:
|
|
|
|
- docker
|
2013-01-21 15:29:11 +00:00
|
|
|
language: ruby
|
|
|
|
matrix:
|
2018-10-01 11:03:53 +00:00
|
|
|
include:
|
|
|
|
# i386: Intel 32-bit
|
|
|
|
- name: i386
|
2019-10-04 15:52:44 +00:00
|
|
|
|
2018-10-01 11:03:53 +00:00
|
|
|
language: generic
|
|
|
|
env:
|
|
|
|
- PGPATH="/usr/lib/postgresql/10/bin"
|
|
|
|
before_install: |
|
2019-09-07 18:37:53 +00:00
|
|
|
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes &&
|
2018-12-26 23:10:17 +00:00
|
|
|
docker build --rm --build-arg PGPATH="${PGPATH}" -t ruby-pg -f spec/env/Dockerfile.i386 .
|
2018-10-01 11:03:53 +00:00
|
|
|
script: |
|
|
|
|
docker run --rm -t --network=host ruby-pg
|
2018-12-26 23:10:17 +00:00
|
|
|
|
2021-09-13 08:27:24 +00:00
|
|
|
- rvm: "2.5"
|
2018-12-26 23:10:17 +00:00
|
|
|
env:
|
|
|
|
- "PGVERSION=9.3"
|
2021-10-01 16:11:15 +00:00
|
|
|
# Use Ubuntu-16.04 since postgresql-9.3 depends on openssl-1.0.0, which isn't available in 20.04
|
|
|
|
dist: xenial
|
2017-12-04 20:07:46 +00:00
|
|
|
- rvm: ruby-head
|
2018-12-26 23:10:17 +00:00
|
|
|
env:
|
2021-10-01 20:56:34 +00:00
|
|
|
- "PGVERSION=14"
|
2021-10-01 16:11:15 +00:00
|
|
|
- rvm: truffleruby
|
|
|
|
env:
|
2021-10-01 20:56:34 +00:00
|
|
|
- "PGVERSION=14"
|
2019-10-04 15:52:44 +00:00
|
|
|
|
2013-07-19 09:38:07 +00:00
|
|
|
allow_failures:
|
2017-12-04 20:07:46 +00:00
|
|
|
- rvm: ruby-head
|
|
|
|
fast_finish: true
|
2018-12-26 23:10:17 +00:00
|
|
|
|
2013-01-21 15:29:11 +00:00
|
|
|
before_install:
|
2015-08-29 09:54:46 +00:00
|
|
|
- bundle install
|
2013-01-21 15:29:11 +00:00
|
|
|
# Download and install postgresql version to test against in /opt (for non-cross compile only)
|
2021-10-01 20:56:34 +00:00
|
|
|
- echo "deb http://apt.postgresql.org/pub/repos/apt/ ${TRAVIS_DIST}-pgdg main $PGVERSION" | sudo tee -a /etc/apt/sources.list.d/pgdg.list
|
2018-12-26 23:10:17 +00:00
|
|
|
- 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 libpq5=$PGVERSION* libpq-dev=$PGVERSION*
|
|
|
|
- export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH
|
2020-08-30 13:29:23 +00:00
|
|
|
|
2018-12-26 23:10:17 +00:00
|
|
|
script:
|
2021-10-01 20:56:34 +00:00
|
|
|
- bundle exec rake compile test PG_DEBUG=0
|
2020-08-30 13:29:23 +00:00
|
|
|
|
|
|
|
after_failure:
|
|
|
|
- "find tmp -name mkmf.log | xargs cat"
|