-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
37 lines (30 loc) · 1.12 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
language: php
php:
- 7.2
- 7.3
env:
- COMPOSER_ARGS=""
- COMPOSER_ARGS="--prefer-lowest"
jobs:
include:
- stage: Code Standard Checker
php: 7.2
install:
- travis_retry composer update --no-interaction --optimize-autoloader --prefer-dist
script:
- vendor/bin/phpcs --standard=vendor/damejidlo/coding-standard/DameJidloCodingStandard/ruleset.xml --extensions=php,phpt -s src tests
install:
- travis_retry composer update --no-interaction --optimize-autoloader --prefer-dist $COMPOSER_ARGS
script:
- vendor/bin/tester --info
- vendor/bin/parallel-lint -e php,phpt --exclude vendor .
- vendor/bin/tester tests
- vendor/bin/phpstan analyse -l max -c tests/phpstan.src.neon src
- IS_PHPSTAN=1 vendor/bin/phpstan analyse -l max -c tests/phpstan.tests.neon tests
after_failure:
- for i in $(find tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
- for i in $(find tests -name \*.expected); do echo "--- $i"; cat $i; echo; echo; done
sudo: false
cache:
directories:
- $HOME/.composer/cache