Skip to content

Commit 286e069

Browse files
committed
Add database configuration for Travis CI
1 parent 93d1a02 commit 286e069

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/.travis.yml export-ignore
88
/build
99
/composer.lock
10+
/database.yml export-ignore
1011
/phpunit.xml export-ignore
1112
/tests export-ignore
1213
/vendor

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
language: php
22

3+
services:
4+
- postgresql
5+
36
matrix:
47
include:
58
- php: 7.1.3
@@ -26,6 +29,7 @@ before_script:
2629
- travis_retry composer self-update
2730
- travis_retry composer install --no-interaction --prefer-source
2831
- chmod +x tests/*.sh
32+
- psql -c 'create database testing;' -U postgres
2933

3034
script:
3135
- ./tests/pu-${PU_FILE}.sh

database.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
test:
2+
adapter: postgresql
3+
database: testing
4+
username: homestead
5+
password: secret
6+
encoding: utf8

0 commit comments

Comments
 (0)