Skip to content

Commit

Permalink
Update travis.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Dec 7, 2019
1 parent 44e3867 commit d2828ab
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,20 @@ return PhpCsFixer\Config::create()
->setRiskyAllowed(false)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => ['align_double_arrow' => false, 'align_equals' => false],
'no_extra_blank_lines' => false,
'no_empty_comment' => false,
'no_extra_consecutive_blank_lines' => false,
'no_unneeded_control_parentheses' => false,
'not_operator_with_successor_space' => true,
'no_superfluous_phpdoc_tags' => false,
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
'phpdoc_align' => false,
'phpdoc_no_empty_return' => false,
'phpdoc_order' => true,
'pre_increment' => false,
'self_accessor' => false,
'single_trait_insert_per_statement' => false,
'yoda_style' => false,
])
Expand Down
19 changes: 10 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
dist: bionic
language: php
sudo: required

php:
- 7.2
- 7.3
- 7.4

cache:
directories:
Expand All @@ -16,10 +17,10 @@ env:
matrix:
- setup=basic IMAGINE_DRIVER=imagick
- setup=basic IMAGINE_DRIVER=gmagick
- setup=lowest IMAGINE_DRIVER=imagick
- setup=lowest IMAGINE_DRIVER=gmagick
- setup=stable IMAGINE_DRIVER=imagick
- setup=stable IMAGINE_DRIVER=gmagick
- setup=lowest IMAGINE_DRIVER=imagick
- setup=lowest IMAGINE_DRIVER=gmagick

before_install:
- phpenv config-rm xdebug.ini || true
Expand All @@ -34,14 +35,14 @@ install:
- phpenv rehash

before_script:
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-source --no-interaction --no-suggest; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-source --no-interaction --no-suggest --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-source --no-interaction --no-suggest --prefer-lowest --prefer-stable; fi
- if [[ $setup = 'coveralls' ]]; then travis_retry composer require "php-coveralls/php-coveralls=^2.1" --prefer-source --no-interaction --no-suggest --dev; fi
- if [[ $setup = 'basic' ]]; then travis_retry composer install --prefer-dist --no-interaction --no-suggest; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --no-suggest --prefer-lowest --prefer-stable; fi
- if [[ $setup = 'coveralls' ]]; then travis_retry composer require "php-coveralls/php-coveralls=^2.1" --prefer-dist --no-interaction --no-suggest --dev; fi

script:
- if [[ $coverage = 'yes' ]]; then ./vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml; fi
- if [[ $coverage = 'no' ]]; then ./vendor/bin/phpunit -c phpunit.xml --testdox --verbose; fi
- if [[ $coverage = 'yes' ]]; then vendor/bin/phpunit -c phpunit.xml --coverage-clover build/logs/clover.xml; fi
- if [[ $coverage = 'no' ]]; then vendor/bin/phpunit -c phpunit.xml --verbose; fi

after_script:
- if [[ $setup = 'coveralls' ]]; then php vendor/bin/php-coveralls -v; fi
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"require-dev": {
"illuminate/bus": "^6.0",
"illuminate/container": "^6.0",
"mockery/mockery": "^1.2",
"phpunit/phpunit": "^8.0"
"mockery/mockery": "^1.3",
"phpunit/phpunit": "^8.4"
},
"autoload": {
"psr-4": {
Expand Down

0 comments on commit d2828ab

Please sign in to comment.