forked from lchrusciel/ApiTestCase
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (40 loc) · 1.18 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
language: php
sudo: false
cache:
directories:
- ~/.composer/cache/files
php:
- 7.4
env:
- SYMFONY_VERSION=4.4.*
- SYMFONY_VERSION=5.0.*
- PHPUNIT_VERSION=^9.0
- MOST_RECENT=true
jobs:
exclude:
- php: 7.2
env:
- PHPUNIT_VERSION=^9.0
before_install:
- phpenv config-rm xdebug.ini || true
install:
- |
if [ ! -z "${SYMFONY_VERSION}" ]
then
composer require "symfony/browser-kit:${SYMFONY_VERSION}" --no-update --no-scripts --prefer-dist
composer require "symfony/finder:${SYMFONY_VERSION}" --no-update --no-scripts --prefer-dist
composer require "symfony/framework-bundle:${SYMFONY_VERSION}" --no-update --no-scripts --prefer-dist
composer require --dev "symfony/serializer:${SYMFONY_VERSION}" --no-update --no-scripts --prefer-dist
fi
- |
if [ ! -z "${PHPUNIT_VERSION}" ]
then
composer require --dev "phpunit/phpunit:${PHPUNIT_VERSION}" --no-update --no-scripts --prefer-dist
fi
- COMPOSER_MEMORY_LIMIT=-1 composer update --prefer-dist
before_script:
- test/app/console doctrine:schema:update --force -vvv
script:
- composer validate --strict
- composer analyse
- vendor/bin/phpunit