forked from sulu/SuluThemeBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 806 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
33
34
35
sudo: false
dist: trusty
language: php
cache:
directories:
- "$HOME/.composer/cache/files"
matrix:
include:
- php: 7.2
env:
- COMPOSER_FLAGS="--prefer-lowest --prefer-stable --prefer-dist --no-interaction"
- php: 7.4
env:
- COMPOSER_FLAGS="--prefer-dist --no-interaction"
- LINT=true
- PECL_INSTALL=imagick
before_install:
- |
if [[ $PECL_INSTALL ]]; then
printf "\n" | pecl install $PECL_INSTALL
fi
- echo "memory_limit=4096M" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- phpenv config-rm xdebug.ini
before_script:
- composer self-update
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update $COMPOSER_FLAGS
script:
- if [[ $LINT = true ]]; then composer lint; fi
- composer phpunit