-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
51 lines (40 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
language: php
dist: xenial
services:
- mysql
env:
global:
- MIN_PHP=7.4
- SYMFONY_PROCESS_PHP_TEST_BINARY=~/.phpenv/shims/php
- SYMFONY_PHPUNIT_DISABLE_RESULT_CACHE=1
- SYMFONY_VERSION="5.2.*" DB=mysql
- APP_ENV=test
- XDEBUG_MODE=coverage
matrix:
include:
- php: 7.4
env: deps=high
services: [memcached]
fast_finish: true
allow_failures:
- php: 8.0snapshot
services: [memcached]
cache:
directories:
- .phpunit
- php-$MIN_PHP
- ~/php-ext
before_install:
- sudo systemctl start mysql
- mysql -e 'create database foo;'
install:
- composer install --no-interaction
- cp .env .env.test
- php bin/console doctrine:database:create --env=test
- php bin/console doctrine:migrations:migrate --env=test --no-interaction
- composer require phpunit/phpunit php-coveralls/php-coveralls
script:
- mkdir -p build/logs
- XDEBUG_MODE=coverage vendor/bin/phpunit tests --coverage-clover build/logs/clover.xml
after_success:
- travis_retry php vendor/bin/php-coveralls -v