-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
39 lines (32 loc) · 1.03 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
language: php
matrix:
fast_finish: true
include:
- php: '7.1'
- php: '7.2'
- php: '7.3'
- php: '7.4'
before_install:
- phpenv config-rm xdebug.ini || echo "No xdebug config."
install:
- composer update --prefer-dist --no-interaction
- mkdir -p coverage/cov coverage/bin
- wget https://phar.phpunit.de/phpcov.phar -O coverage/bin/phpcov
- chmod +x coverage/bin/phpcov
script:
- php vendor/bin/psalm
- phpdbg -qrr vendor/bin/phpunit --coverage-php coverage/cov/main.cov
- php examples/card_type.php
- php examples/class_static_construct.php
- php examples/day.php
- php examples/flag.php
- php examples/option.php
- php examples/php-enum_comparision.php
- php examples/planet.php
- php examples/serialization_php74.php
- php examples/shape.php
after_script:
- curl -OL https://github.com/php-coveralls/php-coveralls/releases/download/v1.0.0/coveralls.phar
- chmod +x coveralls.phar
- phpdbg -qrr coverage/bin/phpcov merge --clover build/logs/clover.xml coverage/cov
- ./coveralls.phar