forked from spryker-sdk/load-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
39 lines (28 loc) · 1.01 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
language: php
php:
- 7.3
- 7.4
matrix:
fast_finish: true
include:
- php: 7.3
env: PREFER_LOWEST=1
env:
global:
- APPLICATION_ENV=development
- APPLICATION_STORE=DE
before_install:
- phpenv config-rm xdebug.ini
install:
- COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-interaction
- if [[ $PREFER_LOWEST == 1 ]]; then COMPOSER_MEMORY_LIMIT=-1 composer update --prefer-lowest --prefer-stable --prefer-dist --no-interaction ; fi
- if [[ $PREFER_LOWEST == 1 ]]; then COMPOSER_MEMORY_LIMIT=-1 composer require --dev dereuromark/composer-prefer-lowest; fi
script:
- find ./src -path src -prune -o -type f -name '*.php' -print0 | xargs -0 -n1 -P4 php -l -n | (! grep -v "No syntax errors detected" )
- if [[ $PREFER_LOWEST != 1 ]]; then composer cs-check; fi
- if [[ $PREFER_LOWEST == 1 ]]; then vendor/bin/validate-prefer-lowest || true; fi
cache:
directories:
- $HOME/.composer/cache/
notifications:
email: false