diff --git a/.cirrus.yml b/.cirrus.yml new file mode 100644 index 0000000..07fd2ef --- /dev/null +++ b/.cirrus.yml @@ -0,0 +1,35 @@ +env: + DEBIAN_FRONTEND: noninteractive + LANG: C + +task: + name: Linux (Debian/Ubuntu) + matrix: + - container: + image: ubuntu:20.04 + env: + matrix: + - PGVERSION: 14 + - PGVERSION: 13 + - PGVERSION: 12 + - PGVERSION: 11 + - PGVERSION: 10 + - PGVERSION: 9.6 + - PGVERSION: 9.5 + - PGVERSION: 9.4 + - PGVERSION: 9.3 + setup_script: + - apt-get update + - apt-get -y install curl gnupg lsb-release + - curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - + - echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main" | tee /etc/apt/sources.list.d/pgdg.list + - apt-get update + - apt-get -y install gcc liburiparser-dev make pkg-config postgresql-$PGVERSION postgresql-server-dev-$PGVERSION + - pg_createcluster --start $PGVERSION test -p 55435 -- -A trust + build_script: + - PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH + - make all + - make install + test_script: + - PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH + - PGPORT=55435 make installcheck PGUSER=postgres diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index faba5dc..0000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -dist: bionic -language: c -addons: - apt: - sources: - - sourceline: 'deb http://apt.postgresql.org/pub/repos/apt/ bionic-pgdg main' - key_url: 'https://www.postgresql.org/media/keys/ACCC4CF8.asc' - update: true - packages: - - liburiparser-dev -env: - - PGVERSION=9.3 - - PGVERSION=9.4 - - PGVERSION=9.5 - - PGVERSION=9.6 - - PGVERSION=10 - - PGVERSION=11 - - PGVERSION=12 -script: | - set -e - PATH=/usr/lib/postgresql/$PGVERSION/bin:$PATH - sudo apt-get install postgresql-$PGVERSION postgresql-server-dev-$PGVERSION - sudo pg_createcluster --start $PGVERSION test -p 55435 -- -A trust - make all - sudo make install PG_CONFIG=/usr/lib/postgresql/$PGVERSION/bin/pg_config - PGPORT=55435 make installcheck PGUSER=postgres