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 2
/
.travis.yml
78 lines (68 loc) · 1.96 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
72
73
74
75
76
77
78
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
- |
if [[ "$SETUP" = "high" ]]; then
$COMPOSER_UP
elif [[ "$SETUP" = "lowest" ]]; then
$COMPOSER_UP --prefer-lowest --prefer-stable;
fi
jobs:
allow_failures:
- php: nightly
- php: 7.4snapshot
include:
- stage: Test
php: 7.2
env: SETUP=lowest REMOVE_XDEBUG=true
- stage: Test
php: 7.2
env: SETUP=high REMOVE_XDEBUG=true
- stage: Test
php: 7.3
env: SETUP=lowest REMOVE_XDEBUG=true
- stage: Test
php: 7.3
env: SETUP=high REMOVE_XDEBUG=true
- stage: Test
php: 7.4snapshot
env: SETUP=lowest REMOVE_XDEBUG=true
- stage: Test
php: nightly
env: SETUP=high REMOVE_XDEBUG=true
- stage: Coding standard
php: 7.2
env: SETUP=high REMOVE_XDEBUG=true
script:
- composer cs-check
- stage: Static Analysis
php: 7.2
env: REMOVE_XDEBUG=false SETUP=high COMPOSER_VERSION=1.9.0
script:
- composer phpstan
- stage: Coverage
php: 7.3
env: SETUP=high 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