forked from web-token/jwt-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (57 loc) · 2.07 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
dist: trusty
sudo: false
language: php
php:
- 7.2
- 7.3
- 7.4snapshot
- nightly
cache:
directories:
- $HOME/.composer/cache
- vendor
before_script:
- mkdir -p build/logs
before_install:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{,.disabled} || echo "xdebug not available"
install: travis_retry composer install
script:
- ./vendor/bin/phpunit
jobs:
allow_failures:
- php: nightly
include:
- stage: Metrics and quality
env: COVERAGE
before_script:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
- if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi
script:
- ./vendor/bin/phpunit --coverage-clover build/logs/clover.xml
after_script:
- ./vendor/bin/php-coveralls --no-interaction
- stage: Metrics and quality
env: STATIC_ANALYSIS
script:
- ./vendor/bin/phpstan analyse
- stage: Metrics and quality
env: CODING_STANDARDS
before_script:
- wget https://cs.symfony.com/download/php-cs-fixer-v2.phar -O php-cs-fixer
- chmod a+x php-cs-fixer
script:
- ./php-cs-fixer fix --dry-run --stop-on-violation --using-cache=no
- stage: Metrics and quality
env: MUTATION
before_script:
- mv ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini{.disabled,}
- if [[ ! $(php -m | grep -si xdebug) ]]; then echo "xdebug required for coverage"; exit 1; fi
script:
- ./vendor/bin/infection --test-framework-options="--group=unit" -s --threads=$(nproc) --min-msi=93 --min-covered-msi=93
- stage: Security Check
env: SECURITY_CHECK
before_script:
- wget -c https://get.sensiolabs.org/security-checker.phar
- chmod +x security-checker.phar
script:
- ./security-checker.phar security:check