-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
33 lines (27 loc) · 936 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
language: php
php:
- 7.3
cache:
directories:
- $HOME/.composer/cache/files
install:
- composer install --no-interaction --prefer-source
before_script:
- wget https://github.com/infection/infection/releases/download/0.8.0/infection.phar
- wget https://github.com/infection/infection/releases/download/0.8.0/infection.phar.pubkey
- chmod +x infection.phar
# Run here all same as in `composer ci`
script:
- mkdir -p build/logs
- composer validate --no-check-all --strict
- vendor/bin/phpcs --standard=PSR2 src
- vendor/bin/phpcpd src tests
- vendor/bin/phpunit --coverage-clover=coverage.xml
- vendor/bin/phpstan analyse src tests
- ./infection.phar --min-msi=48 --threads=4
- vendor/bin/psalm --threads=4
- composer outdated --direct
# public repo on Travis CI (without token)
after_success:
- bash <(curl -s https://codecov.io/bash)
- travis_retry php vendor/bin/php-coveralls -x coverage.xml