File: .travis.yml

package info (click to toggle)
ruby-pg 1.5.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,264 kB
  • sloc: ansic: 8,820; ruby: 2,809; makefile: 10
file content (49 lines) | stat: -rw-r--r-- 1,504 bytes parent folder | download
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.5"
      env:
        - "PGVERSION=9.3"
      # Use Ubuntu-16.04 since postgresql-9.3 depends on 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"