-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (37 loc) · 921 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
language: php
php:
- 7.2
- 7.3
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
global:
- CI=true
- CI_ENVIRONMENT=testing
# Recommended by Travis support
sudo: required
dist: trusty
group: edge
env:
- DB=mysqli
- DB=postgres
- DB=sqlite
services:
- memcached
- mysql
- postgresql
- redis-server
script:
- php vendor/bin/phpunit -v
before_install:
- mysql -e "CREATE DATABASE IF NOT EXISTS test;" -uroot;
- mysql -e "SELECT SCHEMA_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = 'test';" -uroot
- psql -c 'CREATE DATABASE test;' -U postgres
before_script:
- echo 'extension = memcached.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo 'extension = redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer install --prefer-source
after_success:
- travis_retry php tests/bin/php-coveralls.phar -v