comparison .travis.yml @ 6615:36ccdf0eff8d

Fix posgresql.conf change command. need sudo.
author John Rouillard <rouilj@ieee.org>
date Sat, 12 Feb 2022 10:11:31 -0500
parents e9dc8e526dd0
children b8e74fd34f97
comparison
equal deleted inserted replaced
6614:e9dc8e526dd0 6615:36ccdf0eff8d
116 - cat /etc/mysql/my.cnf 116 - cat /etc/mysql/my.cnf
117 - sudo service mysql restart 117 - sudo service mysql restart
118 - mysql -u root -e 'CREATE USER "rounduptest"@"localhost" IDENTIFIED WITH mysql_native_password BY "rounduptest"; GRANT ALL on rounduptest.* TO "rounduptest"@"localhost";' 118 - mysql -u root -e 'CREATE USER "rounduptest"@"localhost" IDENTIFIED WITH mysql_native_password BY "rounduptest"; GRANT ALL on rounduptest.* TO "rounduptest"@"localhost";'
119 119
120 # Disable fsync for speed, don't care about data durability when testing 120 # Disable fsync for speed, don't care about data durability when testing
121 - echo "fsync = off" >> /etc/postgresql/*/*/postgresql.conf 121 - sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf
122 - ls /etc/postgres
123 - sudo service postgresql restart; sleep 30 122 - sudo service postgresql restart; sleep 30
124 # set up postgresql database 123 # set up postgresql database
125 - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres 124 - psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
126 125
127 # build the .mo translation files and install them into a tree 126 # build the .mo translation files and install them into a tree
143 -v --maxfail=20 test/ --cov=roundup; 142 -v --maxfail=20 test/ --cov=roundup;
144 fi 143 fi
145 - if [[ "$TRAVIS_PYTHON_VERSION" == "2."* ]]; then 144 - if [[ "$TRAVIS_PYTHON_VERSION" == "2."* ]]; then
146 py.test -v --maxfail=20 test/ --cov=roundup; 145 py.test -v --maxfail=20 test/ --cov=roundup;
147 fi 146 fi
147 - ./setup.py build_doc
148 148
149 after_success: 149 after_success:
150 - codecov 150 - codecov

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