Install pip and pip3

This commit is contained in:
Raul Marin 2019-10-22 18:23:27 +02:00
parent 8fac0c89eb
commit 1a99151d0e

View File

@ -16,7 +16,6 @@ env:
- POSTGRESQL_VERSION="11"
- POSTGRESQL_VERSION="12"
script:
- sudo service postgresql stop;
- sudo apt-get remove postgresql* -y
@ -24,7 +23,10 @@ script:
- 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
# For pre12, install plpython2. For PG12 install plpython3
- 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 && pip3 install redis==2.4.9; fi;
- sudo apt-get install python-pip python3-pip
- sudo pip install redis==2.4.9;
- sudo pip3 install redis==2.4.9;
- if [[ $POSTGRESQL_VERSION != '12' ]]; then sudo apt-get install -y postgresql-plpython-$POSTGRESQL_VERSION; else sudo apt-get install -y postgresql-plpython3-12; fi;
- sudo pg_dropcluster --stop $POSTGRESQL_VERSION main
- 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