Try hacking plpythonu -> plpython3u
This commit is contained in:
parent
9f904b5926
commit
3b4669df11
@ -24,19 +24,16 @@ script:
|
|||||||
- if [[ $POSTGRESQL_VERSION == '9.6' ]]; then sudo apt-get install -y postgresql-contrib-9.6; fi;
|
- if [[ $POSTGRESQL_VERSION == '9.6' ]]; then sudo apt-get install -y postgresql-contrib-9.6; fi;
|
||||||
- sudo apt-get install -y --allow-unauthenticated postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION-scripts postgis
|
- sudo apt-get install -y --allow-unauthenticated postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION postgresql-$POSTGRESQL_VERSION-postgis-$POSTGIS_VERSION-scripts postgis
|
||||||
# For pre12, install plpython2. For PG12 install plpython3 and make it default
|
# For pre12, install plpython2. For PG12 install plpython3 and make it default
|
||||||
- if [[ $POSTGRESQL_VERSION != '12' ]]; then sudo apt-get install -y postgresql-plpython-$POSTGRESQL_VERSION; else sudo apt-get install -y postgresql-plpython3-12 && sudo cp /usr/share/postgresql/12/extension/plpython3u.control /usr/share/postgresql/12/extension/plpythonu.control && sudo cp /usr/share/postgresql/12/extension/plpython3u--1.0.sql /usr/share/postgresql/12/extension/plpythonu--1.0.sql && sudo cp /usr/share/postgresql/12/extension/plpython3u--unpackaged--1.0.sql /usr/share/postgresql/12/extension/plpythonu--unpackaged--1.0.sql; fi;
|
- if [[ $POSTGRESQL_VERSION != '12' ]]; then sudo apt-get install -y postgresql-plpython-$POSTGRESQL_VERSION && sudo pip install redis==2.4.9; else sudo apt-get install -y postgresql-plpython3-12 && find . \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i 's/plpythonu/plpython3u/g' && pip3 install redis; fi;
|
||||||
- sudo pg_dropcluster --stop $POSTGRESQL_VERSION main
|
- sudo pg_dropcluster --stop $POSTGRESQL_VERSION main
|
||||||
- sudo rm -rf /etc/postgresql/$POSTGRESQL_VERSION /var/lib/postgresql/$POSTGRESQL_VERSION
|
- sudo rm -rf /etc/postgresql/$POSTGRESQL_VERSION /var/lib/postgresql/$POSTGRESQL_VERSION
|
||||||
- sudo pg_createcluster -u postgres $POSTGRESQL_VERSION main -- --auth-local trust --auth-host password
|
- sudo pg_createcluster -u postgres $POSTGRESQL_VERSION main -- --auth-local trust --auth-host password
|
||||||
- sudo /etc/init.d/postgresql start $POSTGRESQL_VERSION || sudo journalctl -xe
|
- sudo /etc/init.d/postgresql start $POSTGRESQL_VERSION || sudo journalctl -xe
|
||||||
- sudo pip install redis==2.4.9
|
|
||||||
|
|
||||||
- make
|
- make
|
||||||
- sudo make install
|
- sudo make install
|
||||||
- make installcheck
|
- make installcheck
|
||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
- dpkg-query -L postgresql-plpython3-$POSTGRESQL_VERSION
|
|
||||||
- pg_lsclusters
|
- pg_lsclusters
|
||||||
- cat regression.out
|
- cat regression.out
|
||||||
- cat regression.diffs
|
- cat regression.diffs
|
||||||
|
Loading…
Reference in New Issue
Block a user