-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (35 loc) · 824 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
39
40
41
42
43
44
45
46
47
language: php
php:
- 7.1
- 7.2
- 7.3
- nightly
matrix:
allow_failures:
- php: nightly
env:
- COMPOSER_OPTS=""
- COMPOSER_OPTS="--prefer-lowest"
install:
- composer update $COMPOSER_OPTS
script:
- vendor/bin/phpunit
jobs:
include:
- stage: dependencies
script:
- vendor/bin/composer-require-checker
- stage: coding standards
script:
- vendor/bin/phpcs --standard=PSR1,PSR2,PSR12 src tests
- stage: code quality
script:
- vendor/bin/phpstan analyse --level=max src
- vendor/bin/phpstan analyse --level=max --configuration=phpstan-tests.neon tests
- stage: coverage
script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
- bash <(curl -s https://codecov.io/bash)
git:
depth: 5
group: travis_latest