-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (32 loc) · 1.04 KB
/
Copy path.travis.yml
File metadata and controls
40 lines (32 loc) · 1.04 KB
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
sudo: false
language: php
dist: trusty
matrix:
fast_finish: true
include:
- php: 7.3
env:
- TYPO3_VERSION=typo3/cms-core:^9.5
- ANALYSIS='true'
- php: 7.2
env: TYPO3_VERSION=typo3/cms-core:^9.5
- php: 7.3
env: TYPO3_VERSION=typo3/cms-core:~10.0.0
- php: 7.2
env: TYPO3_VERSION=typo3/cms-core:~10.0.0
cache:
directories:
- $HOME/.composer/cache
before_install:
- if [[ "$ANALYSIS" != 'true' ]]; then if php -i | grep -q xdebug; then phpenv config-rm xdebug.ini; fi; fi
- composer self-update
- composer --version
before_script:
- composer require --dev "$TYPO3_VERSION"
script:
- find . -name \*.php ! -path "./.build/*" -exec php -l {} >/dev/null \;
- .build/vendor/bin/phpstan analyze
- if [[ "$ANALYSIS" != 'true' ]]; then .build/vendor/bin/phpunit ; fi
- if [[ "$ANALYSIS" == 'true' ]]; then .build/vendor/bin/phpunit --coverage-text --coverage-clover clover.xml ; fi
after_success:
- if [[ "$ANALYSIS" == 'true' ]]; then travis_retry .build/vendor/bin/coveralls -v ; fi