-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
46 lines (38 loc) · 2.42 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
language: php
cache:
directories:
- $HOME/.composer/cache/files
matrix:
include:
- php: 7.2
env: LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-lowest' PHPINSIGHTS_FLAGS='--disable-security-check'
- php: 7.2
env: LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-stable' PHPINSIGHTS_FLAGS=''
- php: 7.3
env: LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-lowest' PHPINSIGHTS_FLAGS='--disable-security-check'
- php: 7.3
env: LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-stable' PHPINSIGHTS_FLAGS=''
- php: 7.4snapshot
env: LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-lowest' PHPINSIGHTS_FLAGS='--disable-security-check'
- php: 7.4snapshot
env: LARAVEL='^6.0' TESTBENCH='^4.0' COMPOSER_FLAGS='--prefer-stable' PHPINSIGHTS_FLAGS=''
fast_finish: true
allow_failures:
- php: 7.4snapshot
before_install:
- composer config discard-changes true
- travis_retry composer self-update
- travis_retry composer require --dev "laravel/framework:${LARAVEL}" --no-interaction --no-update
- travis_retry composer require --dev "orchestra/testbench:${TESTBENCH}" --no-interaction --no-update
- travis_retry composer require --dev php-coveralls/php-coveralls --no-interaction --no-update
install:
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-dist --no-suggest --no-interaction
script:
- vendor/bin/phpmd ./src/ text phpmd.xml
- vendor/bin/phpinsights analyse ./ --format=console ${PHPINSIGHTS_FLAGS} --no-interaction --min-quality=95 --min-complexity=50 --min-architecture=100 --min-style=100 -v
- vendor/bin/phpunit --coverage-text --coverage-clover=build/clover.xml
after_script:
- vendor/bin/php-coveralls
notifications:
slack:
secure: W1M8UNfzUyGpYNaQ9L7lJSNOhcpOhBZjZ/T2RL9Yp4JJ2xHJeRN/ss4fm4QCyWfVyiSXsy4XLrSbySbLWVOCiIi53NnCQI0YSrfmpA/gT2dkQAurVexG63/y3Vc9APg2x7EzhMQK0G083Tps9a75DYEAP4oVqzUKjQuBz5R5IrGFTqitTvHNfcWyt3R+Yb5iRRoKvGDK4S+5Ii1LFcLb8Oz9w7ovW7YVR1mGmSzBtOtTzMHjaflMiM0Y6heDzufQjlVfJjA0GR893oBzBhxjkCitSSAOZD0qq7y0R0BdWtJvLBBcBaRhf+f1f/LhrGOj6jsy7lmA6KF1jr8yVHkeZbCDT+nKh0D1nX+PdJHQN9Qnl0hvI4eGGH1OTzKbw2LP1dOodwLwolNl1mxrUFNC9+n5mH4UWAQSbLHwgsylIZD61JSaFDPltI57TLHXGC5FIGCj4tm6mdHYTpi+mMdbCoxh/om/MPGl/3qRGPoWYRCnu3oEvnMlQNVZ+fyd9vbTdYp+F0+tMBsqbC4DmDyZgtjwp5qqx1HeIATZIx8iAKSho9dHdsN91QGO+inZyf/Ab0QeMTCRw2lsHtdw6e6Q+4TJbFQTQGhiYnWe4foN6bBJt980SGt4kByiju3i96y08xzpoVjCWx/CpNzzn+NPXrSWJjuF8xgt2bSAucVoQmM=