summaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
blob: 1af14be1fbc089d84777acaee7cacbc318f90d88 (plain)
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
unstable:
  image: debian:unstable
  script:
    - apt-get update
    - apt-get install -y build-essential fakeroot
    - apt-get build-dep -y .
    - dpkg-buildpackage -uc -us -rfakeroot
    - ( set -x; for deb in ../*.deb; do dpkg-deb --info $deb; dpkg-deb --contents $deb; done )
    - ( set -x; dpkg --force-confmiss --force-confnew -i ../*.deb || { apt-get install -fy; dpkg --force-confmiss --force-confnew -i ../*.deb; } )
    - dpkg -l postgresql\* | cat
    - ./cleanpg
    - cd /usr/share/postgresql-common && SKIP_IPV6=1 ./testsuite -v "$(debian/supported-versions)" -i -M

jessie:
  tags:
    - jessie
  script:
    - sudo apt-get update
    - sudo apt-get install -y build-essential fakeroot debhelper libreadline-dev lsb-release dh-systemd
    - dpkg-buildpackage -uc -us -rfakeroot
    - ( set -x; for deb in ../*.deb; do dpkg-deb --info $deb; dpkg-deb --contents $deb; done )
    - ( set -x; sudo dpkg --force-confmiss --force-confnew -i ../*.deb || { sudo apt-get install -fy; sudo dpkg --force-confmiss --force-confnew -i ../*.deb; } )
    - dpkg -l postgresql\* | cat
    - sudo ./cleanpg
    - cd /usr/share/postgresql-common && sudo ./testsuite -v "$(debian/supported-versions)" -i

centos7:
  tags:
    - centos7
  script:
    - sudo yum install -y rpm-build
    - make rpmremove
    - make rpmbuild
    - rpm -ql pgdg-centos11 > /dev/null || sudo yum install -y https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm
    - make rpminstall
    - sudo ./cleanpg
    - cd /usr/share/postgresql-common && sudo ./testsuite -v "$(debian/supported-versions)" -i