-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (37 loc) · 1.21 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
language: php
php:
- 7.3
- 7.4
env:
- TESTER_PHP_BIN="php-cgi"
before_install:
- composer self-update
script:
- composer run tests
after_failure:
- for i in $(find ./tests -name \*.actual); do echo "--- $i"; cat $i; echo; echo; done
jobs:
include:
- name: Nette Code Checker
install:
- travis_retry composer create-project nette/code-checker temp/code-checker ~3.2 --no-progress
script:
- php temp/code-checker/code-checker --strict-types --short-arrays
- name: Php-Cs-Fixer
install:
- travis_retry composer install --no-progress --prefer-dist
script:
- vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run
- stage: Code Coverage
install:
- travis_retry composer install --no-progress --prefer-dist
script:
- vendor/bin/tester -p phpdbg tests -s --coverage ./coverage.xml --coverage-src ./src -d zend_extension=xdebug.so
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.xml
allow_failures:
- name: Nette Code Checker
cache:
directories:
- $HOME/.composer/cache