forked from Sylius/SyliusResourceBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (50 loc) · 1.7 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
54
55
56
57
58
59
60
61
62
language: php
php:
- 7.2
- 7.3
- 7.4
env:
- SYMFONY_VERSION=4.4.*
- SYMFONY_VERSION=5.0.*
jobs:
fast_finish: true
allow_failures:
-
env: SYMFONY_VERSION=5.0.*
cache:
directories:
- ~/.composer/cache/files
before_install:
- phpenv config-rm xdebug.ini || true
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
install:
- |
composer require \
symfony/config:$SYMFONY_VERSION \
symfony/expression-language:$SYMFONY_VERSION \
symfony/form:$SYMFONY_VERSION \
symfony/framework-bundle:$SYMFONY_VERSION \
symfony/security-csrf:$SYMFONY_VERSION \
symfony/twig-bundle:$SYMFONY_VERSION \
symfony/validator:$SYMFONY_VERSION \
symfony/yaml:$SYMFONY_VERSION \
--no-update --no-scripts --prefer-dist
- composer require symfony/dependency-injection:$SYMFONY_VERSION --dev --no-update --no-scripts --prefer-dist
- composer update --prefer-dist
- |
(cd src/Component && composer require \
symfony/event-dispatcher:$SYMFONY_VERSION \
symfony/property-access:$SYMFONY_VERSION \
--no-update --no-scripts --prefer-dist \
)
- (cd src/Component && composer update --prefer-dist)
before_script:
- (cd src/Bundle/test && app/console doctrine:database:create)
- (cd src/Bundle/test && app/console doctrine:schema:create)
script:
- composer validate --strict
- (cd src/Component && composer validate --strict)
- composer analyse
- vendor/bin/phpspec run
- (cd src/Component && vendor/bin/phpspec run)
- vendor/bin/phpunit