Skip to content

Commit 31f1289

Browse files
committed
Add missing homebrew packages and try fixing psql test config
1 parent 2e92b62 commit 31f1289

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.travis.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- docker
2020
- postgresql
2121
env: ODBC_SYS_STATIC_PATH=/usr/lib/x86_64-linux-gnu/ POSTGRES_DRIVER=/usr/lib/x86_64-linux-gnu/odbc/psqlodbca.so SQLITE_DRIVER=/usr/lib/x86_64-linux-gnu/odbc/libsqlite3odbc.so
22+
before_script:
23+
- sudo -u postgres psql -c "CREATE USER foo WITH PASSWORD 'bar';" -U postgres
24+
- sudo -u postgres createdb -O foo foo
2225
script:
2326
- cargo test -- --nocapture || travis_terminate 1
2427
- docker build . -t wait_for_db || travis_terminate 1
@@ -38,6 +41,15 @@ jobs:
3841
osx_image: xcode11.2
3942
services:
4043
- postgresql
44+
addons:
45+
homebrew:
46+
packages:
47+
- psqlodbc
48+
- sqliteodbc
49+
env: SQLITE_DRIVER=/usr/local/opt/sqliteodbc/lib/libsqlite3odbc.dylib POSTGRES_DRIVER=/usr/local/opt/psqlodbc/lib/sqlodbca.so
50+
before_script:
51+
- psql -c "CREATE USER foo WITH PASSWORD 'bar';" -U postgres
52+
- createdb -O foo foo
4153
script:
4254
- cargo test -- --nocapture || travis_terminate 1
4355
- cargo build --release || travis_terminate 1
@@ -54,10 +66,6 @@ jobs:
5466
# on:
5567
# tags: true
5668

57-
before_script:
58-
- sudo -u postgres psql -c "CREATE USER foo WITH PASSWORD 'bar';" -U postgres
59-
- sudo -u postgres createdb -O foo foo
60-
6169
env:
6270
global:
6371
- POSTGRES_SERVER=localhost

0 commit comments

Comments
 (0)