Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Commit

Permalink
feat(build): add pgtap job for pg11
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 19, 2019
1 parent 6625b17 commit 7d81b70
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
28 changes: 18 additions & 10 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,31 @@ build-image-postgres-11-tag:
IMAGE_ARGS: --push
IMAGE_ARCH: postgres-11

test-schema-postgres-10:
extends:
- .test-pgtap
stage:
.test-schema:
stage: test
script:
- export PGHOST=localhost
- export PGPASSWORD=test_root
- export PGDATABASE=test_schema
-
psql -c "SELECT 'ok';" || sleep 3600
- ./scripts/schema-create.sh
- cpan TAP::Parser::SourceHandler::pgTAP
- pg_prove test/*.sql
variables:
PGHOST: localhost
PGPORT: 5432
PGUSER: test_root
PGPASSWORD: test_root
PGDATABASE: test_schema
POSTGRES_DATABASE: test_schema
POSTGRES_USER: test_root
POSTGRES_PASSWORD: test_root

test-schema-postgres-10:
extends:
- .test-pgtap-10
- .test-schema

test-schema-postgres-11:
extends:
- .test-pgtap-11
- .test-schema

# github jobs
github-pending:
stage: status-pre
Expand Down
10 changes: 9 additions & 1 deletion .gitlab/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,19 @@
- runner:shared
allow_failure: false

.test-pgtap:
.test-pgtap-10:
image: ssube/prometheus-sql-adapter:master-postgres-10
services:
- docker.artifacts.apextoaster.com/ssube/timescaledb:1.5.1-pg10-pgtap
tags:
- platform:k8s
- runner:shared

.test-pgtap-11:
image: ssube/prometheus-sql-adapter:master-postgres-11
services:
- docker.artifacts.apextoaster.com/ssube/timescaledb:1.5.1-pg11-pgtap
tags:
- platform:k8s
- runner:shared

0 comments on commit 7d81b70

Please sign in to comment.