forked from RWOverdijk/AssetManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (34 loc) · 1.19 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
cache:
directories:
- $HOME/.composer/cache
env:
global:
- COMPOSER_ARGS="--no-interaction"
matrix:
fast_finish: true
include:
- php: 7.3
env: dependencies=lowest
- php: 7.3
env: dependencies=highest
- php: 7.4
env: dependencies=lowest
- php: 7.4
env: dependencies=highest
- php: 8.0
env:
- dependencies=lowest
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
- php: 8.0
env:
- dependencies=highest
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
before_script:
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
- if [[ "$dependencies" == "lowest" ]]; then travis_retry composer update --prefer-dist --prefer-lowest --prefer-stable $COMPOSER_ARGS; fi;
- if [[ "$dependencies" == "highest" ]]; then travis_retry composer update --prefer-dist $COMPOSER_ARGS; fi;
- if [[ "$dependencies" == "highest" ]]; then travis_retry composer require laminas/laminas-mvc-console:^1.1 --prefer-dist $COMPOSER_ARGS; fi;
script:
- ./vendor/bin/phpunit
- if [[ "$CS_CHECK" == "true" ]]; then ./vendor/bin/phpcs --standard=PSR2 ./src ./tests/AssetManagerTest; fi;