-
Notifications
You must be signed in to change notification settings - Fork 181
/
.travis.yml
49 lines (43 loc) · 1.45 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
sudo: required
dist: focal
services:
- docker
language: ruby
matrix:
include:
# i386: Intel 32-bit
- name: i386
language: generic
env:
- PGPATH="/usr/lib/postgresql/10/bin"
before_install: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes &&
docker build --rm --build-arg PGPATH="${PGPATH}" -t ruby-pg -f spec/env/Dockerfile.i386 .
script: |
docker run --rm -t --network=host ruby-pg
- rvm: "2.7"
env:
- "PGVERSION=10"
# Use Ubuntu-16.04 which provides openssl-1.0.0, which isn't available in 20.04
dist: xenial
- rvm: ruby-head
env:
- "PGVERSION=14"
- rvm: truffleruby
env:
- "PGVERSION=14"
allow_failures:
- rvm: ruby-head
fast_finish: true
before_install:
- 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-get -y update
- sudo apt-get -y --allow-downgrades install postgresql-$PGVERSION libpq5=$PGVERSION* libpq-dev=$PGVERSION*
- export PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH
script:
- bundle exec rake compile test PG_DEBUG=0
after_failure:
- "find tmp -name mkmf.log | xargs cat"