Skip to content

WIP: Add support for testing upgrade scripts #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 61 commits into from
Nov 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
da20230
Switch to new travis support
Oct 23, 2016
f668d13
Add .gitignores for new generated files
Oct 23, 2016
49e3400
Fix version number
Oct 23, 2016
c3a5ad9
Add tests for schedules
Oct 23, 2016
4b846da
Scripts to support parallel test schedule
Oct 23, 2016
2dfeb37
Support for update and parallel tests
Oct 23, 2016
6a76c85
Update travis build
Oct 23, 2016
50b0eb4
Another attempt at travis matrix
Oct 23, 2016
e81fadf
Tweak travis
Oct 23, 2016
f21c31c
Travis tweak
Oct 23, 2016
d278665
Test length can exceed 99ms in parallel
Oct 23, 2016
cd6cc5d
Adjust extension tests for extension install
Oct 23, 2016
ffcc826
Fixes to test targets
Oct 23, 2016
ce1fb02
Fix travis bug
Oct 23, 2016
413a252
Remove bad dependency
Oct 23, 2016
373e739
Fix bug in test condition
Oct 23, 2016
6611a7b
Fix travis
Oct 23, 2016
5f81be7
More travis
Oct 23, 2016
bc2e20d
More travis fixes
Oct 23, 2016
b4a1d4d
Fix issue with test/setup.sql being in .gitignore
Oct 23, 2016
5b3faf8
Squelch cat error when regression.out doesn't exist
Oct 23, 2016
fa36366
Better install check error handling
Oct 23, 2016
d8f677f
update check won't work prior to 9.1
Oct 23, 2016
1e82213
Travis bug
Oct 23, 2016
f3f83e6
Just run regress as sudo
Oct 23, 2016
fedfa32
Fix recursive make
Oct 23, 2016
57461d8
Remove duplicate install
Oct 24, 2016
da3b7c5
Change default UPDATE_FROM
Oct 24, 2016
1f489be
Fix to travis script
Oct 24, 2016
d2cafde
0.96.0 is actually 0.95.0
Oct 24, 2016
718a91c
Don't double-install needlessly
Oct 24, 2016
ba38981
Travis doesn't like intermediate uninstall
Oct 24, 2016
cb29f25
Merge branch 'master' into test_upgrade
Nov 9, 2016
a6e79df
Add alternate output for 9.2
Nov 10, 2016
692cc96
Add target to uninstall all code output
Nov 13, 2016
fb85524
Merge branch 'master' into test_upgrade. One test still failing.
Mar 26, 2018
bfff7e3
Add PG10 back to .travis.yml
Mar 26, 2018
6461b71
Disable upgrade check prior to 9.3
Mar 26, 2018
77f23e9
Don't blindly lump extension tests in with IGNORE_TESTS.
Mar 26, 2018
1be0355
Merge branch 'master' into test_upgrade
Jun 23, 2018
9cb354b
Fix table_owner_is(name, name, text) in 97-98 upgrade
Jun 23, 2018
e685085
Move fix to 98->99 upgrade script
Jun 23, 2018
5b5119f
Drop 8.4 and 9.0
Jun 23, 2018
96699e9
Merge branch 'master' of github.com:theory/pgtap into test_upgrade
Feb 15, 2019
fb97f80
Improve comments
decibel Sep 16, 2019
a5bf155
Merge branch 'master' into test_upgrade
decibel Sep 16, 2019
da5c3af
Currently can not upgrade from 0.98.0 to 0.99.0 on PG11
decibel Sep 17, 2019
7273f92
Fix policy test exclusion; add comments to Makefile
decibel Oct 2, 2019
7416921
Add more extensive testing of make targets
decibel Oct 2, 2019
72a9b8f
Improve target testing code
decibel Oct 2, 2019
265f3af
Fix make clean for pre-9.2
decibel Oct 2, 2019
a59b0e3
Merge branch 'master' into test_upgrade
decibel Oct 7, 2019
8262804
Fix typo in README
decibel Oct 7, 2019
c27329c
Better document some targets... hopefully this can be turned into som…
decibel Oct 7, 2019
556db66
Test serial installcheck (PARALLEL_CONN=1)
decibel Oct 7, 2019
738342c
Try and fix .travis.yml
decibel Oct 7, 2019
438cbb5
another yaml fix
decibel Oct 7, 2019
308506a
another yaml fix
decibel Oct 7, 2019
9bbbded
another yaml fix
decibel Oct 8, 2019
3528a0a
another yaml fix
decibel Oct 8, 2019
38ff8ba
Address PR feedback
decibel Nov 5, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
# THERE IS ANOTHER .gitignore IN test/sql!

.*.swp
pgtap.sql
pgtap-core.sql
pgtap-schema.sql
uninstall_pgtap.sql
test/setup.sql
results
pgtap.so
regression.*
*.html
*.html1
*.sql.orig
bbin

/sql/pgtap--?.??.?.sql
/sql/pgtap--?.?.?.sql
/sql/pgtap-core--*
Expand All @@ -21,6 +23,10 @@ bbin
/sql/pgtap--0.98.0--0.99.0.sql
/sql/pgtap--0.99.0--1.0.0.sql
/sql/pgtap-static.sql
/sql/pgtap-static.sql.tmp*
*.sql.orig

test/build

# Misc mac crap
.DS_Store
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
language: c
before_install:
- wget https://gist.githubusercontent.com/petere/5893799/raw/apt.postgresql.org.sh
- wget https://gist.githubusercontent.com/petere/6023944/raw/pg-travis-test.sh
- sudo sh ./apt.postgresql.org.sh
- sudo rm -vf /etc/apt/sources.list.d/pgdg-source.list
script:
- bash ./pg-travis-test.sh

env:
- PGVERSION=8.4
- PGVERSION=9.0
- PGVERSION=9.1
- PGVERSION=9.2
- PGVERSION=9.3
- PGVERSION=9.4
- PGVERSION=9.5
- PGVERSION=9.6
- PGVERSION=10
- PGVERSION=11
- PGVERSION=11 UPDATE_FROM=0.99.0
# Duplication below is via s/-/- PARALLEL_CONN=1/
- PARALLEL_CONN=1 PGVERSION=9.1
- PARALLEL_CONN=1 PGVERSION=9.2
- PARALLEL_CONN=1 PGVERSION=9.3
- PARALLEL_CONN=1 PGVERSION=9.4
- PARALLEL_CONN=1 PGVERSION=9.5
- PARALLEL_CONN=1 PGVERSION=9.6
- PARALLEL_CONN=1 PGVERSION=10
- PARALLEL_CONN=1 PGVERSION=11 UPDATE_FROM=0.99.0
script: bash ./pg-travis-test.sh
Loading