Mercurial > p > roundup > code
comparison .github/workflows/ci-test.yml @ 7417:6b332e3d7c43
try to fix postgres install on ubuntu 20.04 for Python 3.6.
force update of apt inventory. Looks like postgresql 14 is supposed
to be installed, but apt install is trying v12.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Thu, 25 May 2023 18:38:23 -0400 |
| parents | f636c3c5333e |
| children | a6d6c728240f |
comparison
equal
deleted
inserted
replaced
| 7416:302ce182ffd3 | 7417:6b332e3d7c43 |
|---|---|
| 128 #sudo netstat -anp | grep mysqld | 128 #sudo netstat -anp | grep mysqld |
| 129 sudo mysql -u root -proot -e 'CREATE USER "rounduptest"@"localhost" IDENTIFIED WITH mysql_native_password BY "rounduptest"; GRANT ALL on rounduptest.* TO "rounduptest"@"localhost";' | 129 sudo mysql -u root -proot -e 'CREATE USER "rounduptest"@"localhost" IDENTIFIED WITH mysql_native_password BY "rounduptest"; GRANT ALL on rounduptest.* TO "rounduptest"@"localhost";' |
| 130 | 130 |
| 131 - name: Install postgres | 131 - name: Install postgres |
| 132 run: | | 132 run: | |
| 133 sudo apt-get install postgresql | 133 sudo apt-get update && sudo apt-get install postgresql |
| 134 # Disable fsync for speed, don't care about data durability | 134 # Disable fsync for speed, don't care about data durability |
| 135 # when testing | 135 # when testing |
| 136 sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf | 136 sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf |
| 137 sudo service postgresql restart; sleep 10 | 137 sudo service postgresql restart; sleep 10 |
| 138 # set up postgresql database | 138 # set up postgresql database |
