Skip to content

Commit 063ae70

Browse files
committed
try creating a pg superuser as ourselves without a password
1 parent c4853f9 commit 063ae70

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ services:
1313
language: rust
1414
env: |
1515
DATABASE_POOL_SIZE=5 \
16-
DATABASE_URL=postgres://postgres@/rfcbot \
16+
DATABASE_URL=postgres:///rfcbot \
1717
GITHUB_SCRAPE_INTERVAL=6000 \
1818
GITHUB_USER_AGENT=rfcbot-rs \
1919
GITHUB_WEBHOOK_SECRETS=none \
@@ -24,6 +24,7 @@ before_install:
2424
- cargo fmt --all -- --check
2525
install:
2626
- sudo systemctl start postgresql
27+
- sudo -u postgres createuser --no-password --superuser $USER
2728
- cargo install diesel_cli --no-default-features --features postgres -Z install-upgrade
2829
before_script:
2930
- diesel setup

0 commit comments

Comments
 (0)