forked from TYPO3/phar-stream-wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
46 lines (40 loc) · 948 Bytes
/
.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
language: php
matrix:
include:
- php: '7.0'
- php: '7.1'
- php: '7.2'
- php: '7.2'
env: deps=high
- php: '7.3'
- php: '7.3'
env: deps=high
- php: '7.4'
env: deps=high
- php: 'nightly'
fast_finish: true
allow_failures:
- php: nightly
addons:
apt:
packages:
- parallel
cache:
directories:
- $HOME/.composer/cache
before_install:
- composer self-update
- composer --version
before_script:
- if [ -z "$deps" ]; then composer install $composer; fi;
- if [ "$deps" = "low" ]; then composer update --prefer-lowest -n $composer; fi;
- if [ "$deps" = "high" ]; then composer update -n $composer; fi;
script:
- >
echo;
echo "Running tests";
SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1 vendor/bin/simple-phpunit --colors
- >
echo;
echo "Running PHP lint";
find . -name \*.php ! -path './vendor/*' | parallel --gnu php -d display_errors=stderr -l {} > /dev/null \;