diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 95d2ebd26bd71aeffe3b76a0db71972dfd7705ef..a811c68a50328120437a1b00cc5da9e3cdba4464 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,6 +14,7 @@ variables: stages: - lint - build + - test - deploy image: postgres:13 @@ -57,104 +58,108 @@ lint-markdown: ## B U I L D ## -make9: + +make12: stage: build - image: postgres:9.6 + image: postgres:12 script: - - apt-get update && apt-get install -y make postgresql-plpython3-9.6 postgresql-server-dev-9.6 python3-pip + - apt-get update && apt-get install -y make postgresql-plpython3-12 git postgresql-server-dev-12 python3-pip - pip3 install -r requirements.txt - make extension - make install - make installcheck || diff results tests/expected artifacts: paths: - - build + - _build/ - regression.* - results/ expire_in: 1 day -make10: +make13: stage: build - image: postgres:10 + image: postgres:13 script: - - apt-get update && apt-get install -y make postgresql-plpython3-10 postgresql-server-dev-10 python3-pip + - apt-get update && apt-get install -y make postgresql-plpython3-13 postgresql-server-dev-13 python3-pip - pip3 install -r requirements.txt - make extension - make install - make installcheck || diff results tests/expected artifacts: paths: - - build + - _build/ - regression.* - results/ expire_in: 1 day -make11: +make11-centos: stage: build - image: postgres:11 + image: centos:7 + before_script: + - echo 'ignoring global before_script' script: - - apt-get update && apt-get install -y make postgresql-plpython3-11 postgresql-server-dev-11 python3-pip + - yum -y install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm + - yum -y install git make postgresql-plpython3-11 postgresql11 postgresql11-server postgresql11-devel pgxnclient python-setuptools python3-pip + - /usr/pgsql-11/bin/pg_config + - export PATH="$PATH:/usr/pgsql-11/bin" - pip3 install -r requirements.txt - - make extension + - cd /tmp + - git clone https://gitlab.com/dalibo/postgresq_faker.git faker + - cd faker + - make + - make install + when: manual + +## +## T E S T +## +test9: + stage: test + image: postgres:9.6 + script: + - apt-get update && apt-get install -y make postgresql-plpython3-9.6 postgresql-server-dev-9.6 python3-pip + - pip3 install -r requirements.txt + #- make extension - make install - make installcheck || diff results tests/expected artifacts: paths: - - build + - _build/ - regression.* - results/ expire_in: 1 day -make12: - stage: build - image: postgres:12 +test10: + stage: test + image: postgres:10 script: - - apt-get update && apt-get install -y make postgresql-plpython3-12 git postgresql-server-dev-12 python3-pip + - apt-get update && apt-get install -y make postgresql-plpython3-10 postgresql-server-dev-10 python3-pip - pip3 install -r requirements.txt - - make extension + #- make extension - make install - make installcheck || diff results tests/expected artifacts: paths: - - build + - _build/ - regression.* - results/ expire_in: 1 day -make13: - stage: build - image: postgres:13 +test11: + stage: test + image: postgres:11 script: - - apt-get update && apt-get install -y make postgresql-plpython3-13 postgresql-server-dev-13 python3-pip + - apt-get update && apt-get install -y make postgresql-plpython3-11 postgresql-server-dev-11 python3-pip - pip3 install -r requirements.txt - - make extension + #- make extension - make install - make installcheck || diff results tests/expected artifacts: paths: - - build + - _build/ - regression.* - results/ expire_in: 1 day -make11-centos: - stage: build - image: centos:7 - before_script: - - echo 'ignoring global before_script' - script: - - yum -y install https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm - - yum -y install git make postgresql-plpython3-11 postgresql11 postgresql11-server postgresql11-devel pgxnclient python-setuptools python3-pip - - /usr/pgsql-11/bin/pg_config - - export PATH="$PATH:/usr/pgsql-11/bin" - - pip3 install -r requirements.txt - - cd /tmp - - git clone https://gitlab.com/dalibo/postgresq_faker.git faker - - cd faker - - make - - make install - when: manual - ## ## D E P L O Y @@ -199,7 +204,7 @@ pgxn: - make pgxn artifacts: paths: - - build + - _build/ - _pgxn/ expire_in: 1 day only: