Skip to content

Commit a8f1a6b

Browse files
committed
fix: more handling of oriole16 differences
1 parent f961371 commit a8f1a6b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ansible/tasks/test-image.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,21 @@
6363
failed_when: retval.rc != 0
6464
when: debpkg_mode or stage2_nix
6565

66+
- name: Check psql_version and modify migrations if orioe-16
67+
block:
68+
- name: Check if psql_version is psql_oriole-16
69+
set_fact:
70+
is_psql_oriole_16: "{{ psql_version == 'psql_oriole-16' }}"
71+
72+
- name: Remove specified extensions from SQL file
73+
ansible.builtin.command:
74+
cmd: >
75+
sed -i '/\(timescaledb\|postgis\|pgrouting\|plv8\|pgvector\)/d'
76+
/tmp/migrations/tests/test.sql
77+
when: is_psql_oriole_16 and stage2_nix
78+
become: yes
79+
80+
6681
- name: Run migrations tests
6782
shell: /usr/bin/pg_prove -U supabase_admin -h localhost -d postgres -v tests/test.sql
6883
register: retval

0 commit comments

Comments
 (0)