comparison .github/workflows/ci-test.yml @ 6844:c0d2017ef797

add sudo for apt-get
author John Rouillard <rouilj@ieee.org>
date Wed, 31 Aug 2022 21:27:54 -0400
parents c61ab02ad067
children bd4d573ca733
comparison
equal deleted inserted replaced
6843:c61ab02ad067 6844:c0d2017ef797
46 run: python -c "import sys; print(sys.version)" 46 run: python -c "import sys; print(sys.version)"
47 47
48 # Install the databases 48 # Install the databases
49 - name: Install postgres 49 - name: Install postgres
50 run: | 50 run: |
51 apt-get install postgresql 51 sudo apt-get install postgresql
52 # Disable fsync for speed, don't care about data durability when testing 52 # Disable fsync for speed, don't care about data durability when testing
53 sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf 53 sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf
54 sudo service postgresql restart; sleep 30 54 sudo service postgresql restart; sleep 30
55 # set up postgresql database 55 # set up postgresql database
56 psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres 56 psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
57 57
58 - name: Install mysql 58 - name: Install mysql
59 run: | 59 run: |
60 apt-get install mysql 60 sudo apt-get install mysql
61 # set up mysql database 61 # set up mysql database
62 sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf 62 sudo sed -i -e '/^\[mysqld\]/,/^\[mysql/s/^max_allowed_packet.*/max_allowed_packet = 500M/' /etc/mysql/my.cnf
63 cat /etc/mysql/my.cnf 63 cat /etc/mysql/my.cnf
64 sudo service mysql restart 64 sudo service mysql restart
65 mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";' 65 mysql -u root -e 'GRANT ALL ON rounduptest.* TO rounduptest@localhost IDENTIFIED BY "rounduptest";'

Roundup Issue Tracker: http://roundup-tracker.org/