forked from FriendsOfSymfony/FOSCommentBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (26 loc) · 787 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
language: php
php:
- 5.6
- 7.1
- 7.2
- 7.3
cache:
directories:
- $HOME/.composer/cache/files
matrix:
include:
- php: 5.6
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_DEPRECATIONS_HELPER=weak
- php: 5.6
env: DEPENDENCIES="symfony/lts:^2"
- php: 7.1
env: DEPENDENCIES="symfony/lts:^3"
fast_finish: true
before_install:
- echo "memory_limit=2G" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini;
install:
- if [ "$DEPENDENCIES" != "" ]; then composer require --no-update $DEPENDENCIES; fi;
- composer update --prefer-dist --no-interaction $COMPOSER_FLAGS
script:
- composer validate --no-check-lock --strict
- ./vendor/bin/phpunit --coverage-text --colors