Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add PCOV to TravisCI #741

Merged
merged 3 commits into from
Jul 13, 2019
Merged

Add PCOV to TravisCI #741

merged 3 commits into from
Jul 13, 2019

Conversation

maks-rafalko
Copy link
Member

Current testing matrix:

PHP Driver Dependencies
7.2 xdebug
7.2 phpdbg
7.2 pcov (NEW)
7.2 none
7.2 xdebug lowest
7.2 phpdbg lowest
7.3 xdebug
7.3 phpdbg
7.3 none
7.3 xdebug lowest
7.3 phpdbg lowest
7.4snapshot phpdbg
nightly phpdbg

I'm not sure we need pcov for 7.3 and lowest dependencies. All of this increases a build time a lot.

Use $DRIVER instead of different env variables for each driver

Enable xdebug when DRIVER=none to generate coverage

Use correct env variable name to detect phpdbg in e2e tests

Add default `env: DRIVER="xdebug"` and remove duplicate job

Do not run pcov for phpspec e2e test

Use composer install or composer update --prefer-lowest

Remove mutators form PhpUnit_Depends_Order e2e test

Add more tests for pcov
@maks-rafalko maks-rafalko added this to the 0.14.0 milestone Jul 11, 2019
.gitignore Show resolved Hide resolved
.travis.yml Outdated Show resolved Hide resolved
@sanmai
Copy link
Member

sanmai commented Jul 12, 2019

lowest dependencies (e.g. PHPUnit 8.0.0)

Shall we limit the lowest version to something more sensible? Like 8.2.4 which is the most current release now. That is totally our choice as this is our dev dependency.

I went ahead and did that in #743

@sanmai
Copy link
Member

sanmai commented Jul 12, 2019

I think one way to tackle this issue is to detect whenever we're being run with DEPS="LOW", and then just skip the E2ETest.

@maks-rafalko
Copy link
Member Author

@theofidry, @sanmai fixed your comments.

New matrix

Build #2753 - infection:infection - Travis CI 2019-07-12 22-34-32

script:
- if [[ $PHPDBG != 1 ]]; then xdebug-enable; fi
- if [[ $PHPDBG != 1 ]]; then $PHPUNIT_BIN; else phpdbg -qrr $PHPUNIT_BIN; fi
- if [[ "$DRIVER" == "xdebug" || "$DRIVER" == "none" ]]; then xdebug-enable; fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the point of DRIVER=none is to run Infection without any kind of coverage collector, with the coverage data we had from the initial PHPUnit run, am I right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly!

@maks-rafalko maks-rafalko merged commit f4a3692 into master Jul 13, 2019
@maks-rafalko maks-rafalko deleted the feature/pcov branch July 13, 2019 07:53
@maks-rafalko
Copy link
Member Author

Thank you @sanmai and @theofidry for the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants