-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
38 lines (31 loc) · 900 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
language: php
addons:
chrome: stable
cache:
directories:
- $HOME/.composer/cache
php:
- 7.4
- 8.0
- 8.1
install:
- composer install --no-interaction --prefer-dist
script:
- php vendor/bin/phpunit
jobs:
include:
- stage: Code Static Analyze (phpstan)
php: 8.1
script:
- php vendor/bin/phpstan
- stage: Code Standard Checker
php: 8.1
script:
- php vendor/bin/phpcs --standard=PSR12 --ignore=./src/Resources ./src ./tests
- stage: Code Coverage
php: 8.1
script:
- php vendor/bin/phpunit --coverage-clover ./coverage.xml
after_script:
- wget https://github.com/satooshi/php-coveralls/releases/download/v2.1.0/php-coveralls.phar
- php php-coveralls.phar --verbose