|
| 1 | +sudo: false |
| 2 | + |
| 3 | +language: php |
| 4 | + |
| 5 | +matrix: |
| 6 | + include: |
| 7 | + - name: '[REQUIRE_CHECK] With Locked Dependencies' |
| 8 | + php: '7.4snapshot' |
| 9 | + env: require=1 |
| 10 | + - name: '[REQUIRE_CHECK] With Lowest Dependencies' |
| 11 | + php: '7.4snapshot' |
| 12 | + env: require=1 dependencies=lowest |
| 13 | + - name: '[REQUIRE_CHECK] With Highest Dependencies' |
| 14 | + php: '7.4snapshot' |
| 15 | + env: require=1 dependencies=highest |
| 16 | + |
| 17 | + - name: '[CS] PHP 7.4 With Locked Dependencies' |
| 18 | + php: '7.4snapshot' |
| 19 | + env: cs=1 |
| 20 | + - name: '[CS] PHP 7.4 With Lowest Dependencies' |
| 21 | + php: '7.4snapshot' |
| 22 | + env: cs=1 dependencies=lowest |
| 23 | + - name: '[CS] PHP 7.4 With Highest Dependencies' |
| 24 | + php: '7.4snapshot' |
| 25 | + env: cs=1 dependencies=highest |
| 26 | + - name: '[CS] PHP Nightly With Locked Dependencies' |
| 27 | + php: nightly |
| 28 | + env: cs=1 |
| 29 | + - name: '[CS] PHP Nightly With Lowest Dependencies' |
| 30 | + php: nightly |
| 31 | + env: cs=1 dependencies=lowest |
| 32 | + - name: '[CS] PHP Nightly With Highest Dependencies' |
| 33 | + php: nightly |
| 34 | + env: cs=1 dependencies=highest |
| 35 | + |
| 36 | + - name: '[UNIT] PHP 7.4 With Locked Dependencies' |
| 37 | + php: '7.4snapshot' |
| 38 | + env: unit=1 |
| 39 | + - name: '[UNIT] PHP 7.4 With Lowest Dependencies' |
| 40 | + php: '7.4snapshot' |
| 41 | + env: dependencies=lowest unit=1 |
| 42 | + - name: '[UNIT] PHP 7.4 With Highest Dependencies' |
| 43 | + php: '7.4snapshot' |
| 44 | + env: dependencies=highest unit=1 |
| 45 | + - name: '[UNIT] PHP Nightly With Locked Dependencies' |
| 46 | + php: nightly |
| 47 | + env: unit=1 |
| 48 | + - name: '[UNIT] PHP Nightly With Highest Dependencies' |
| 49 | + php: nightly |
| 50 | + env: dependencies=highest unit=1 |
| 51 | + - name: '[UNIT] PHP Nightly With Lowest Dependencies' |
| 52 | + php: nightly |
| 53 | + env: dependencies=lowest unit=1 |
| 54 | + |
| 55 | + - name: '[INTEGRATION] PHP 7.4 With Locked Dependencies' |
| 56 | + php: '7.4snapshot' |
| 57 | + env: integration=1 |
| 58 | + - name: '[INTEGRATION] PHP 7.4 With Lowest Dependencies' |
| 59 | + php: '7.4snapshot' |
| 60 | + env: dependencies=lowest integration=1 |
| 61 | + - name: '[INTEGRATION] PHP 7.4 With Highest Dependencies' |
| 62 | + php: '7.4snapshot' |
| 63 | + env: dependencies=highest integration=1 |
| 64 | + - name: '[INTEGRATION] PHP Nightly With Locked Dependencies' |
| 65 | + php: nightly |
| 66 | + env: integration=1 |
| 67 | + - name: '[INTEGRATION] PHP Nightly With Highest Dependencies' |
| 68 | + php: nightly |
| 69 | + env: dependencies=highest integration=1 |
| 70 | + - name: '[INTEGRATION] PHP Nightly With Lowest Dependencies' |
| 71 | + php: nightly |
| 72 | + env: dependencies=lowest integration=1 |
| 73 | + |
| 74 | + - name: '[INFECTION] PHP 7.4 With Locked Dependencies' |
| 75 | + php: '7.4snapshot' |
| 76 | + env: infection=1 |
| 77 | + - name: '[INFECTION] PHP 7.4 With Lowest Dependencies' |
| 78 | + php: '7.4snapshot' |
| 79 | + env: dependencies=lowest infection=1 |
| 80 | + - name: '[INFECTION] PHP 7.4 With Highest Dependencies' |
| 81 | + php: '7.4snapshot' |
| 82 | + env: dependencies=highest infection=1 |
| 83 | + - name: '[INFECTION] PHP Nightly With Locked Dependencies' |
| 84 | + php: nightly |
| 85 | + env: infection=1 |
| 86 | + - name: '[INFECTION] PHP Nightly With Highest Dependencies' |
| 87 | + php: nightly |
| 88 | + env: dependencies=highest infection=1 |
| 89 | + - name: '[INFECTION] PHP Nightly With Lowest Dependencies' |
| 90 | + php: nightly |
| 91 | + env: dependencies=lowest infection=1 |
| 92 | + allow_failures: |
| 93 | + - name: '[CS] PHP 7.4 With Locked Dependencies' |
| 94 | + php: '7.4snapshot' |
| 95 | + env: cs=1 |
| 96 | + - name: '[CS] PHP 7.4 With Lowest Dependencies' |
| 97 | + php: '7.4snapshot' |
| 98 | + env: cs=1 dependencies=lowest |
| 99 | + - name: '[CS] PHP 7.4 With Highest Dependencies' |
| 100 | + php: '7.4snapshot' |
| 101 | + env: cs=1 dependencies=highest |
| 102 | + - name: '[CS] PHP Nightly With Locked Dependencies' |
| 103 | + php: nightly |
| 104 | + env: cs=1 |
| 105 | + - name: '[CS] PHP Nightly With Lowest Dependencies' |
| 106 | + php: nightly |
| 107 | + env: cs=1 dependencies=lowest |
| 108 | + - name: '[CS] PHP Nightly With Highest Dependencies' |
| 109 | + php: nightly |
| 110 | + env: cs=1 dependencies=highest |
| 111 | + |
| 112 | + - name: '[UNIT] PHP Nightly With Locked Dependencies' |
| 113 | + php: nightly |
| 114 | + env: unit=1 |
| 115 | + - name: '[UNIT] PHP Nightly With Highest Dependencies' |
| 116 | + php: nightly |
| 117 | + env: dependencies=highest unit=1 |
| 118 | + - name: '[UNIT] PHP Nightly With Lowest Dependencies' |
| 119 | + php: nightly |
| 120 | + env: dependencies=lowest unit=1 |
| 121 | + |
| 122 | + - name: '[INTEGRATION] PHP Nightly With Locked Dependencies' |
| 123 | + php: nightly |
| 124 | + env: integration=1 |
| 125 | + - name: '[INTEGRATION] PHP Nightly With Highest Dependencies' |
| 126 | + php: nightly |
| 127 | + env: dependencies=highest integration=1 |
| 128 | + - name: '[INTEGRATION] PHP Nightly With Lowest Dependencies' |
| 129 | + php: nightly |
| 130 | + env: dependencies=lowest integration=1 |
| 131 | + |
| 132 | + - name: '[INFECTION] PHP Nightly With Locked Dependencies' |
| 133 | + php: nightly |
| 134 | + env: infection=1 |
| 135 | + - name: '[INFECTION] PHP Nightly With Highest Dependencies' |
| 136 | + php: nightly |
| 137 | + env: dependencies=highest infection=1 |
| 138 | + - name: '[INFECTION] PHP Nightly With Lowest Dependencies' |
| 139 | + php: nightly |
| 140 | + env: dependencies=lowest infection=1 |
| 141 | + |
| 142 | +before_install: |
| 143 | + - phpenv config-rm xdebug.ini || echo "No xdebug config." |
| 144 | + - composer self-update |
| 145 | + |
| 146 | +install: |
| 147 | + - wget https://github.com/php-coveralls/php-coveralls/releases/download/v2.0.0/php-coveralls.phar |
| 148 | + - chmod +x php-coveralls.phar |
| 149 | + |
| 150 | +before_script: |
| 151 | + - if [ -z "$dependencies" ]; then travis_retry composer install -n; fi; |
| 152 | + - if [ "$dependencies" = "lowest" ]; then travis_retry composer update --prefer-lowest -n; fi; |
| 153 | + - if [ "$dependencies" = "highest" ]; then travis_retry composer update -n; fi; |
| 154 | + |
| 155 | +script: |
| 156 | + - if [ "$unit" = 1 ]; then phpdbg -qrr vendor/bin/phpunit --testsuite UnitTestSuite --coverage-text --coverage-clover build/logs/clover.xml; fi; |
| 157 | + - if [ "$integration" = 1 ]; then phpdbg -qrr vendor/bin/phpunit --testsuite IntegrationTestSuite --coverage-text --coverage-clover build/logs/clover.xml; fi; |
| 158 | + - if [ "$cs" = 1 ]; then vendor/bin/phpcs -s; fi; |
| 159 | + - if [ "$require" = 1 ]; then vendor/bin/composer-require-checker check; fi; |
| 160 | + - if [ "$infection" = 1 ]; then phpdbg -qrr vendor/infection/infection/bin/infection --threads=4 --min-msi=100 --min-covered-msi=100; fi; |
| 161 | + |
| 162 | +after_success: |
| 163 | + - if [ "$unit" = 1 ]; then travis_retry php php-coveralls.phar; fi; |
0 commit comments