Skip to content

Commit 3a9ad0d

Browse files
committed
Merge branch 'master' into patch-1
2 parents 782cc2c + d26ef29 commit 3a9ad0d

File tree

15 files changed

+43
-761
lines changed

15 files changed

+43
-761
lines changed

.codeclimate.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.coveralls.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

.travis.yml

Lines changed: 9 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,48 @@
11
language: php
22
dist: trusty
3-
sudo: false
3+
os: linux
44
cache:
55
directories:
66
- $HOME/.composer/cache/files
77

88
php:
99
- 7.4
10-
- 7.3
10+
- 7.3.14
1111
- 7.2
1212
- 7.1
1313

1414
before_install:
15-
- if [[ !$XDEBUG ]]; then phpenv config-rm xdebug.ini; fi
1615
- if [ -n "$GITHUB_API_KEY" ]; then composer config -g github-oauth.github.com ${GITHUB_API_KEY}; fi;
1716

1817
install: composer update --prefer-dist --prefer-stable --no-interaction
1918

20-
script: bin/phpunit --enforce-time-limit
19+
script:
20+
- bin/phpunit --enforce-time-limit --coverage-clover clover.xml
21+
- bash <(curl -s https://codecov.io/bash) -f clover.xml
2122

2223
jobs:
2324
include:
2425
- stage: Test
25-
env: XDEBUG=true
26-
- name: Prefer lowest
26+
name: Prefer lowest
2727
php: 7.1
2828
install: composer update --prefer-lowest --prefer-dist --prefer-stable --no-interaction
2929
- name: Use composer.lock
3030
php: 7.2
3131
install: composer install --prefer-dist --no-interaction
3232
- stage: Code style, static analysis and E2E
3333
name: End2End with Pcov
34-
env: XDEBUG=true
35-
install:
34+
install:
3635
- pecl install pcov
3736
- composer update --no-dev --no-interaction
3837
script:
3938
- src/Bin/paraunit run FakeDriverTest
4039
- src/Bin/paraunit coverage FakeDriverTest --text
4140
- name: End2End with Xdebug
42-
env: XDEBUG=true
43-
install: composer install --no-dev --no-interaction
4441
script:
4542
- src/Bin/paraunit run FakeDriverTest
4643
- src/Bin/paraunit coverage FakeDriverTest --text
47-
- env: PHPSTAN=true
44+
- name: PHPStan
4845
php: 7.1
4946
script: composer phpstan
50-
- env: CS-FIXER=true
47+
- name: Check Code Style
5148
script: composer cs-check
52-
- stage: Coverage
53-
env: CC_TEST_REPORTER_ID=8c560bd57df8d9409ef8d6c077538025cd023256211b5d08f8892910c6ed6b5f
54-
before_script:
55-
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
56-
- chmod +x ./cc-test-reporter
57-
- ./cc-test-reporter before-build
58-
script: phpdbg -qrr bin/phpunit --enforce-time-limit --coverage-clover ./build/logs/clover.xml
59-
after_success:
60-
- php bin/php-coveralls -v
61-
- if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
62-
63-
before_deploy:
64-
- composer update --no-dev
65-
- curl -LSs https://box-project.github.io/box2/installer.php | php
66-
- php box.phar build
67-
- echo $DECRYPT_KEY | gpg --passphrase-fd 0 contrib/ParaunitSigningKeys.asc.gpg && gpg --batch --yes --import contrib/ParaunitSigningKeys.asc
68-
- echo $SIGN_KEY | gpg --passphrase-fd 0 -u E4F5798D --armor --detach-sig paraunit.phar
69-
- gpg --verify paraunit.phar.asc paraunit.phar
70-
71-
deploy:
72-
provider: releases
73-
api_key: $GITHUB_API_KEY
74-
file:
75-
- paraunit.phar
76-
- paraunit.phar.asc
77-
skip_cleanup: true
78-
on:
79-
tags: true
80-
php: 7.1

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66
## Unreleased
77

8-
## [1.0.0] - TBA
8+
## [1.0.0] - 2020-03-11
99
First stable release. The following changes are in comparison to the previous, unstable release (0.12.3), split into the beta releases that were tagged in the meantime.
10+
### Removed
11+
* PHAR release (it's not working)
1012

1113
## [1.0.0-beta2] - 2020-02-26
1214
### Added

README.md

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,13 @@
77

88
[![Build status][Master build image]][Master build link]
99
[![Appveyor build status][Appveyor build image]][Appveyor build link]
10-
1110
[![Coverage Status][Master coverage image]][Master coverage link]
12-
[![Code Climate][Master climate image]][Master climate link]
13-
[![SL Insight][SL Insight image]][SL Insight link]
1411

1512
Paraunit is a tool for faster executions of PHPUnit test suites. It makes this possible by launching multiple test in parallel with single PHPUnit processes.
1613

1714
Paraunit is developed using Symfony components.
1815

1916
## Installation
20-
### From Composer
2117
To use this package, use Composer:
2218

2319
* from CLI: `composer require --dev facile-it/paraunit`
@@ -26,23 +22,11 @@ To use this package, use Composer:
2622
```json
2723
{
2824
"require-dev": {
29-
"facile-it/paraunit": "~0.12"
25+
"facile-it/paraunit": "~1.0"
3026
}
3127
}
3228
```
3329

34-
### PHAR
35-
If you prefer you can directly download the latest version in **PHAR format**, from the [latest GitHub release page](https://github.com/facile-it/paraunit/releases/latest), starting from 0.7.3. In this case, you need to replace `vendor/bin/paraunit` with `./paraunit.phar`.
36-
37-
#### Verify the GPG signature
38-
All the Paraunit PHAR releases are signed with GPG. To verify the signature:
39-
* Download the PHAR
40-
* Download the associated GPG signature (the `.asc` file)
41-
* Use the GPG tool to verify
42-
```
43-
gpg --verify paraunit-x.y.phar.asc paraunit.phar
44-
```
45-
4630
## Usage
4731
Paraunit starts as a Symfony console command, but it's provided through a bin launcher; you can run it like this:<br/>
4832
(assuming your composer's bin dir is `vendor/bin`)
@@ -51,12 +35,13 @@ vendor/bin/paraunit run
5135
```
5236
This command will launch all the tests in all your configured testsuites.
5337

38+
### Collect test coverage
5439
Paraunit is also able to **collect the test coverage in parallel**, like this:
5540
```
5641
vendor/bin/paraunit coverage --html=./dir
5742
```
5843

59-
It automatically **uses PHPDBG** if available, and it can produce coverage in the same formats that PHPUnit provides: HTML, Clover, XML, Crap4j, PHP, text file and text to console.
44+
It **automatically uses the best coverage driver available**: it tries to use [Pcov](https://github.com/krakjoe/pcov) if available (since it's the fastest), otherwise it uses [Xdebug](https://xdebug.org/). If neither are available, it should always be able to use [PHPDbg](https://www.php.net/manual/en/book.phpdbg.php), which is bundled in PHP core, so it should be always present. It can produce coverage in the same formats that PHPUnit provides: HTML, Clover, XML, Crap4j, PHP, text file and text to console.
6045

6146
## Documentation
6247
For more details about Paraunit and its usage, see the [documentation](https://engineering.facile.it/paraunit/documentation/)
@@ -65,13 +50,9 @@ For more details about Paraunit and its usage, see the [documentation](https://e
6550
[Last unstable image]: https://poser.pugx.org/facile-it/paraunit/v/unstable.svg
6651
[Master build image]: https://travis-ci.org/facile-it/paraunit.svg
6752
[Appveyor build image]: https://ci.appveyor.com/api/projects/status/ohmhq2s762x3ixli/branch/master?svg=true
68-
[Master climate image]: https://codeclimate.com/github/facile-it/paraunit/badges/gpa.svg
69-
[Master coverage image]: https://coveralls.io/repos/facile-it/paraunit/badge.svg?branch=master&service=github
70-
[SL Insight image]: https://insight.sensiolabs.com/projects/6571b482-6e1d-4e0c-b215-94d757909b20/mini.png
53+
[Master coverage image]: https://codecov.io/gh/facile-it/paraunit/branch/master/graph/badge.svg
7154

7255
[Packagist link]: https://packagist.org/packages/facile-it/paraunit
7356
[Master build link]: https://travis-ci.org/facile-it/paraunit
7457
[Appveyor build link]: https://ci.appveyor.com/project/Jean85/paraunit/branch/master
75-
[Master climate link]: https://codeclimate.com/github/facile-it/paraunit
76-
[Master coverage link]: https://coveralls.io/github/facile-it/paraunit?branch=master
77-
[SL Insight link]: https://insight.sensiolabs.com/projects/6571b482-6e1d-4e0c-b215-94d757909b20
58+
[Master coverage link]: https://codecov.io/gh/facile-it/paraunit

box.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

codecov.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
comment: false

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,10 @@
3939
"require-dev": {
4040
"facile-it/facile-coding-standard": "^0.3.1",
4141
"jangregor/phpstan-prophecy": "^0.6.0",
42-
"php-coveralls/php-coveralls": "^2.0",
4342
"phpstan/extension-installer": "^1.0",
4443
"phpstan/phpstan": "^0.12.4",
4544
"phpstan/phpstan-phpunit": "^0.12.5",
46-
"phpunit/php-invoker": "^1.1",
45+
"phpunit/php-invoker": "^1.1||^2.0||^3.0",
4746
"symfony/expression-language": "^3.4||^4.0||^5.0",
4847
"symfony/phpunit-bridge": "^5.0"
4948
},

0 commit comments

Comments
 (0)