Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 35 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,25 @@ matrix:
- name: '[INFECTION] PHP Nightly With Highest Dependencies'
php: nightly
env: infection=1 dependencies=highest

- name: '[PHPSTAN] PHP 7.3 With Locked Dependencies'
php: '7.3'
env: phpstan=1
- name: '[PHPSTAN] PHP 7.3 With Lowest Dependencies'
php: '7.3'
env: phpstan=1 dependencies=lowest
- name: '[PHPSTAN] PHP 7.3 With Highest Dependencies'
php: '7.3'
env: phpstan=1 dependencies=highest
- name: '[PHPSTAN] PHP Nightly With Locked Dependencies'
php: nightly
env: phpstan=1
- name: '[PHPSTAN] PHP Nightly With Lowest Dependencies'
php: nightly
env: phpstan=1 dependencies=lowest
- name: '[PHPSTAN] PHP Nightly With Highest Dependencies'
php: nightly
env: phpstan=1 dependencies=highest
allow_failures:
- name: '[CS] PHP Nightly With Locked Dependencies'
php: nightly
Expand Down Expand Up @@ -129,6 +148,16 @@ matrix:
- name: '[INFECTION] PHP Nightly With Highest Dependencies'
php: nightly
env: infection=1 dependencies=highest

- name: '[PHPSTAN] PHP Nightly With Locked Dependencies'
php: nightly
env: phpstan=1
- name: '[PHPSTAN] PHP Nightly With Lowest Dependencies'
php: nightly
env: phpstan=1 dependencies=lowest
- name: '[PHPSTAN] PHP Nightly With Highest Dependencies'
php: nightly
env: phpstan=1 dependencies=highest
services:
- redis-server

Expand All @@ -144,18 +173,19 @@ before_script:
- if [ -z "$dependencies" ]; then travis_retry composer install -n; fi;
- if [ "$dependencies" = "lowest" ]; then travis_retry composer update --prefer-lowest -n; fi;
- if [ "$dependencies" = "highest" ]; then travis_retry composer update -n; fi;
- wget https://github.com/infection/infection/releases/download/0.12.2/infection.phar
- wget https://github.com/infection/infection/releases/download/0.12.2/infection.phar.asc
- gpg --keyserver hkps.pool.sks-keyservers.net --recv-keys 493B4AA0
- gpg --with-fingerprint --verify infection.phar.asc infection.phar
- chmod +x infection.phar
- if [ "$infection" = 1 ]; then wget https://github.com/infection/infection/releases/download/0.12.2/infection.phar; fi;
- if [ "$infection" = 1 ]; then wget https://github.com/infection/infection/releases/download/0.12.2/infection.phar.asc; fi;
- if [ "$infection" = 1 ]; then gpg --keyserver hkps.pool.sks-keyservers.net --recv-keys 493B4AA0; fi;
- if [ "$infection" = 1 ]; then gpg --with-fingerprint --verify infection.phar.asc infection.phar; fi;
- if [ "$infection" = 1 ]; then chmod +x infection.phar; fi;

script:
- if [ "$unit" = 1 ]; then phpdbg -qrr vendor/bin/phpunit --testsuite HarmonIOCacheUnitTestSuite --coverage-text --coverage-clover build/logs/clover.xml; fi;
- if [ "$integration" = 1 ]; then phpdbg -qrr vendor/bin/phpunit --testsuite HarmonIOCacheIntegrationTestSuite --coverage-text --coverage-clover build/logs/clover.xml; fi;
- if [ "$cs" = 1 ]; then vendor/bin/phpcs -s; fi;
- if [ "$require" = 1 ]; then vendor/bin/composer-require-checker check; fi;
- if [ "$infection" = 1 ]; then phpdbg -qrr ./infection.phar --min-msi=100 --min-covered-msi=100 --threads=4 --show-mutations; fi;
- if [ "$phpstan" = 1 ]; then vendor/bin/phpstan analyse src --level max; fi;

after_success:
- if [ "$unit" = 1 ]; then travis_retry php php-coveralls.phar; fi;
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ init:
- SET PHP=1
- SET ANSICON=121x90 (121x90)
install:
# Setup WSUS
- choco install chocolatey-windowsupdate.extension

# Install Redis
- nuget install redis-64 -excludeversion
- redis-64\tools\redis-server.exe --service-install
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"harmonyio/php-codesniffer-ruleset": "dev-master",
"harmonyio/phpunit-extension": "dev-master",
"maglnet/composer-require-checker": "^2.0.0",
"phpstan/phpstan": "^0.11.5",
"phpunit/phpunit": "^8.1.3",
"slevomat/coding-standard": "^5.0.4",
"squizlabs/php_codesniffer": "^3.4.2"
Expand Down
Loading