-
Notifications
You must be signed in to change notification settings - Fork 90
/
.travis.yml
53 lines (44 loc) · 1.06 KB
/
.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
48
49
50
51
52
53
language: php
cache:
directories:
- $HOME/.composer/cache
php:
- 7.2
- 7.3
- 7.4
- nightly
env:
global:
- MEMCACHE_HOST=localhost
- REDIS_URIS=redis://localhost:63791,redis://localhost:63792,redis://localhost:63793
- MYSQL_DSN="mysql:host=localhost;dbname=test"
- MYSQL_USER=travis
- MYSQL_PASSWORD=
- PGSQL_DSN="pgsql:host=localhost;dbname=test;"
- PGSQL_USER=postgres
- PGSQL_PASSWORD=
services:
- memcached
- mysql
- postgresql
- redis-server
matrix:
fast_finish: true
allow_failures:
- php: nightly
before_install:
- sudo apt-get update
- pecl update-channels
- phpenv config-add tests/php-travis.ini
- redis-server --port 63791 &
- redis-server --port 63792 &
- redis-server --port 63793 &
install:
- composer install --no-progress --no-scripts --no-suggest --no-interaction
before_script:
- mysql -e 'create database test;'
- psql -c 'create database test;' -U postgres
script:
- vendor/bin/phpunit
- vendor/bin/phpcs --standard=PSR2 classes/ tests/
- vendor/bin/phpstan analyse