This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
71 lines (63 loc) · 1.59 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
70
71
dist: trusty
sudo: false
language: php
env:
global:
- TEST="./vendor/bin/phpunit --verbose"
- COMPOSER_UP="composer update --no-interaction --prefer-dist --no-progress --profile --no-suggest"
cache:
directories:
- $HOME/.composer/cache/files
- $HOME/.php-cs-fixer
before_install:
- stty cols 120
- mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d
- chmod a+x ./build/travis/configure_php.sh
- ./build/travis/configure_php.sh
install:
- composer global require hirak/prestissimo
- $COMPOSER_UP
jobs:
allow_failures:
- php: nightly
- php: 7.4snapshot
include:
- stage: Test
php: 7.2
env: REMOVE_XDEBUG=true
- stage: Test
if: type != cron
php: 7.3
env: REMOVE_XDEBUG=true
- stage: Test
if: type != cron
php: 7.4snapshot
env: REMOVE_XDEBUG=true
- stage: Test
if: type != cron
php: nightly
env: REMOVE_XDEBUG=true
- stage: Coding standard
if: type != cron
php: 7.2
env: REMOVE_XDEBUG=true
script:
- ./vendor/bin/php-cs-fixer fix --verbose --diff --dry-run
- stage: Coding standard
if: type != cron
php: 7.2
env: REMOVE_XDEBUG=false
script:
- ./vendor/bin/phpstan analyse -c phpstan.neon src
- stage: Coverage
if: type != cron
php: 7.2
env: REMOVE_XDEBUG=false
script:
- bash -xc "$TEST -c ./phpunit.xml.dist --coverage-clover=coverage.xml"
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
email:
on_success: never
on_failure: always