Skip to content

Commit 57733c7

Browse files
committed
Add explicit test user to postgres
1 parent 7b131d7 commit 57733c7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ addons:
1616
- postgresql-10
1717
postgresql: 10
1818

19+
before_script:
20+
- psql -c "CREATE USER foo WITH PASSWORD 'bar';" -U postgres
21+
1922
script:
2023
- cargo test -- --nocapture || travis_terminate 1
2124
- docker build . -t wait_for_db || travis_terminate 1
@@ -26,8 +29,8 @@ env:
2629
- ODBC_SYS_STATIC_PATH=/usr/lib/x86_64-linux-gnu/
2730
- POSTGRES_SERVER=localhost
2831
- POSTGRES_PORT=5432
29-
- POSTGRES_USERNAME=travis
30-
- POSTGRES_PASSWORD=travis
32+
- POSTGRES_USERNAME=foo
33+
- POSTGRES_PASSWORD=bar
3134
- RUST_BACKTRACE=1
3235
- POSTGRES_DRIVER=/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so
3336
- SQLITE_DRIVER=/usr/lib/x86_64-linux-gnu/odbc/libsqlite3odbc.so

0 commit comments

Comments
 (0)