Skip to content

Commit

Permalink
Merge pull request #4 from ngyuki/remove-pharhub
Browse files Browse the repository at this point in the history
Remove pharhub
  • Loading branch information
ngyuki committed Dec 28, 2020
2 parents 1935697 + 17deb50 commit aab4c24
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 34 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Expand Up @@ -34,10 +34,8 @@ jobs:
with:
dependency-versions: ${{ matrix.dependencies }}

- run: vendor/bin/phpunit.phar --colors=always
- run: vendor/bin/phpunit --colors=always

- run: vendor/bin/php-cs-fixer.phar fix --dry-run --diff --ansi -v
- run: vendor/bin/php-cs-fixer fix --dry-run --diff --ansi -v

- run: vendor/bin/phan.phar --no-progress-bar --color

- run: vendor/bin/composer-require-checker.phar --ansi -vvv
- run: vendor/bin/phan --no-progress-bar --color
10 changes: 4 additions & 6 deletions .travis.yml
Expand Up @@ -10,20 +10,18 @@ php:
cache:
directories:
- $HOME/.composer/cache/
- $HOME/.phive/

before_install:
- composer install --prefer-dist --no-progress --no-suggest
- mkdir -p build/logs/

script:
- vendor/bin/php-cs-fixer.phar fix --dry-run --diff --ansi -v
- vendor/bin/phan.phar --no-progress-bar --color --allow-polyfill-parser
- vendor/bin/composer-require-checker.phar --ansi -vvv
- vendor/bin/phpunit.phar --colors --coverage-text --coverage-clover build/logs/clover.xml
- vendor/bin/php-cs-fixer fix --dry-run --diff --ansi -v
- vendor/bin/phan --no-progress-bar --color --allow-polyfill-parser
- vendor/bin/phpunit --colors --coverage-text --coverage-clover build/logs/clover.xml

after_success:
- travis_retry tools/php-coveralls -v
- travis_retry vendor/bin/php-coveralls -v

branches:
only:
Expand Down
31 changes: 10 additions & 21 deletions composer.json
Expand Up @@ -13,23 +13,16 @@
"preferred-install": "dist",
"sort-packages": true
},
"repositories": {
"pharhub": {
"type": "composer",
"url": "https://packages.pharhub.dev/"
}
},
"require": {
"php": "^7.2",
"ext-simplexml": "*",
"ext-pcre": "*"
},
"require-dev": {
"pharhub/composer-require-checker": "^2.1",
"pharhub/phan": "^3.2",
"pharhub/php-coveralls": "^2.4",
"pharhub/php-cs-fixer": "^2.17",
"pharhub/phpunit": "^8.5"
"friendsofphp/php-cs-fixer": "^2.17",
"phan/phan": "^4.0",
"php-coveralls/php-coveralls": "^2.4",
"phpunit/phpunit": "^8.5"
},
"autoload": {
"psr-4": {
Expand All @@ -46,28 +39,24 @@
],
"scripts": {
"test": [
"@php vendor/bin/phpunit.phar --colors=always"
"@php vendor/bin/phpunit --colors=always"
],
"coverage": [
"@php vendor/bin/phpunit.phar --colors=always --coverage-html coverage"
"@php vendor/bin/phpunit --colors=always --coverage-html coverage"
],
"cs": [
"@php vendor/bin/php-cs-fixer.phar fix --dry-run --diff --ansi -v"
"@php vendor/bin/php-cs-fixer fix --dry-run --diff --ansi -v"
],
"fix": [
"@php vendor/bin/php-cs-fixer.phar fix --diff --ansi -v"
"@php vendor/bin/php-cs-fixer fix --diff --ansi -v"
],
"phan": [
"@php vendor/bin/phan.phar -p --color"
],
"composer-require-checker": [
"@php vendor/bin/composer-require-checker.phar --ansi -vvv"
"@php vendor/bin/phan -p --color"
],
"qa": [
"@composer cs",
"@composer phan",
"@composer test",
"@composer composer-require-checker"
"@composer test"
]
}
}
4 changes: 2 additions & 2 deletions tests/SampleTest.php
Expand Up @@ -3,8 +3,8 @@

use ngyuki\Skeleton\Sample;
use PHPUnit\Framework\TestCase;
use function PHPUnit\assertEquals;
use function PHPUnit\assertFalse;
use function assertEquals;
use function assertFalse;

/**
* @author ngyuki
Expand Down

0 comments on commit aab4c24

Please sign in to comment.