Skip to content

Commit

Permalink
Remove extension update tests, it's not really possible to check upda…
Browse files Browse the repository at this point in the history
…te chain from 1.0.0
  • Loading branch information
AMDmi3 committed Feb 16, 2020
1 parent 44f13f7 commit 4c48aec
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,3 @@ script:
- sudo make install
- make installcheck
- if test -e regression.diffs; then cat regression.diffs; fi

- sudo -u postgres psql -c "CREATE DATABASE ext_test1;"
- sudo -u postgres psql -d ext_test1 -c "CREATE EXTENSION libversion"
- sudo -u postgres psql -d ext_test1 -c "SELECT pg_catalog.pg_describe_object(classid, objid, 0) FROM pg_catalog.pg_depend WHERE refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass AND refobjid = (SELECT oid FROM pg_catalog.pg_extension WHERE extname='libversion') and deptype='e' order by 1" > extension_contents.a

- sudo -u postgres psql -c "CREATE DATABASE ext_test2;"
- sudo -u postgres psql -d ext_test2 -c "CREATE EXTENSION libversion VERSION '1.0.0'"
- sudo -u postgres psql -d ext_test2 -c "ALTER EXTENSION libversion UPDATE"
- sudo -u postgres psql -d ext_test2 -c "SELECT pg_catalog.pg_describe_object(classid, objid, 0) FROM pg_catalog.pg_depend WHERE refclassid = 'pg_catalog.pg_extension'::pg_catalog.regclass AND refobjid = (SELECT oid FROM pg_catalog.pg_extension WHERE extname='libversion') and deptype='e' order by 1" > extension_contents.b

- if cmp -s extension_contents.a extension_contents.b; then echo "Extension update check passed"; else echo "Extension update sanity check failed!"; diff -u extension_contents.a extension_contents.b; false; fi

0 comments on commit 4c48aec

Please sign in to comment.