forked from lavary/crunz
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (52 loc) · 1.76 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
language: php
os: linux
dist: xenial
cache:
directories:
- $HOME/.composer/cache
git:
depth: 1
php:
- 7.2
- 7.3
- 7.4
env:
matrix:
- SYMFONY_VERSION="^v3.4.5" PHPUNIT_BRIDGE_VERSION="^v3.4.31" DEPENDENCIES="high"
- SYMFONY_VERSION="^v3.4.5" PHPUNIT_BRIDGE_VERSION="^v3.4.31" DEPENDENCIES="low"
- SYMFONY_VERSION="~v4.3.0" DEPENDENCIES="high"
- SYMFONY_VERSION="~v4.3.0" DEPENDENCIES="low"
- SYMFONY_VERSION="~v4.4.0" DEPENDENCIES="high"
- SYMFONY_VERSION="~v4.4.0" DEPENDENCIES="low"
- SYMFONY_VERSION="~v5.0.0" PHPUNIT_BRIDGE_VERSION="~v5.0.0" DEPENDENCIES="high"
- SYMFONY_VERSION="~v5.0.0" PHPUNIT_BRIDGE_VERSION="~v5.0.0" DEPENDENCIES="low"
- SYMFONY_VERSION="~v5.1.0" DEPENDENCIES="high"
- SYMFONY_VERSION="~v5.1.0" DEPENDENCIES="low"
global:
- DEFAULT_COMPOSER_FLAGS="--no-interaction --no-progress --no-suggest --prefer-dist"
- PHPUNIT_BRIDGE_VERSION="~v4.4.0"
jobs:
fast_finish: true
include:
- php: 7.3
env:
- STATIC_CHECKS=1
- SYMFONY_VERSION="~v4.4.0"
- DEPENDENCIES="high"
before_install:
- phpenv config-rm xdebug.ini || return 0;
- composer self-update
- composer global require hirak/prestissimo -a
install:
- php ./composer-install.php "$SYMFONY_VERSION" "$DEPENDENCIES" "$DEFAULT_COMPOSER_FLAGS" "$PHPUNIT_BRIDGE_VERSION"
- composer show
- if [[ "$STATIC_CHECKS" = '1' ]]; then
travis_retry composer bin cs-fixer install -a --no-dev;
travis_retry composer bin phpstan install -a;
fi
script:
- if [[ "$STATIC_CHECKS" = '1' ]]; then
composer crunz:analyze;
composer phpstan:check;
fi
- vendor/bin/phpunit