Skip to content

Commit d276a04

Browse files
committed
Fix posgresql.conf change command. need sudo.
1 parent a88531e commit d276a04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,7 @@ before_script:
118118
- mysql -u root -e 'CREATE USER "rounduptest"@"localhost" IDENTIFIED WITH mysql_native_password BY "rounduptest"; GRANT ALL on rounduptest.* TO "rounduptest"@"localhost";'
119119

120120
# Disable fsync for speed, don't care about data durability when testing
121-
- echo "fsync = off" >> /etc/postgresql/*/*/postgresql.conf
122-
- ls /etc/postgres
121+
- sudo sed -i -e '$a\fsync = off' /etc/postgresql/*/*/postgresql.conf
123122
- sudo service postgresql restart; sleep 30
124123
# set up postgresql database
125124
- psql -c "CREATE ROLE rounduptest WITH CREATEDB LOGIN PASSWORD 'rounduptest';" -U postgres
@@ -145,6 +144,7 @@ script:
145144
- if [[ "$TRAVIS_PYTHON_VERSION" == "2."* ]]; then
146145
py.test -v --maxfail=20 test/ --cov=roundup;
147146
fi
147+
- ./setup.py build_doc
148148

149149
after_success:
150150
- codecov

0 commit comments

Comments
 (0)