-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
121 lines (94 loc) · 2.79 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
dist: trusty
env:
global:
language: php
cache:
directories:
- $HOME/.composer/cache
.steps:
#
# CI STEP
#
- &add-composer-bin-dir-to-path |
export PATH="$PATH:$HOME/.composer/vendor/bin"
- &disable-xdebug-php-extension |
phpenv config-rm xdebug.ini || echo "xdebug not available"
- &disable-php-memory-limit |
echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- &install-project-dependencies |
composer install --no-progress --no-suggest --ansi
- &update-project-dependencies |
composer update --no-progress --no-suggest --ansi
- &validate-composer |
composer validate --strict --ansi -vvv
- &run-phpunit-tests |
vendor/bin/phpunit --colors=always --coverage-clover=coverage-report.clover --log-junit=test-report.xml
- &run-phpstan-tests |
vendor/bin/phpstan analyse
- &run-php-psalm-check |
vendor/bin/psalm
- &run-code-style-check |
./vendor/bin/php-cs-fixer fix --dry-run -v
jobs:
include:
- name: '(PHP 7.2)'
php: '7.2'
env: RUN_SONAR_SCANNER=1
before_install:
- *disable-php-memory-limit
install:
- *install-project-dependencies
#- ./bin/phpunit install
before_script:
- *validate-composer
script:
- *run-code-style-check
- *run-phpstan-tests
- *run-phpunit-tests
after_success:
#- if [[ $RUN_SONAR_SCANNER == "1" ]]; then sonar-scanner -Dproject.settings=sonar-project.properties -Dsonar.projectVersion=$TRAVIS_TAG; fi
- name: '(PHP 7.3)'
php: '7.3'
before_install:
- *disable-xdebug-php-extension
- *disable-php-memory-limit
install:
- *install-project-dependencies
#- ./bin/phpunit install
before_script:
#- *clear-test-app-cache
script:
- *run-code-style-check
- *run-phpstan-tests
- *run-phpunit-tests
- name: '(PHP 7.4)'
php: '7.4snapshot'
before_install:
- *disable-xdebug-php-extension
- *disable-php-memory-limit
install:
- *install-project-dependencies
#- ./vendor/bin/phpunit install
before_script:
#- *clear-test-app-cache
script:
- *run-code-style-check
- *run-phpstan-tests
- *run-phpunit-tests
- name: '(PHP 8-nightly)'
php: 'nightly'
before_install:
- *disable-xdebug-php-extension
- *disable-php-memory-limit
install:
#- *install-project-dependencies
- composer update
- ./vendor/bin/phpunit install
before_script:
#- *clear-test-app-cache
script:
- *run-code-style-check
- *run-phpstan-tests
- *run-phpunit-tests
allow_failures:
- name: '(PHP 8-nightly)'