Skip to content

Updated travis yml to properly test different symfony versions #221

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

Merged
merged 16 commits into from
Nov 27, 2017

Conversation

Nyholm
Copy link
Member

@Nyholm Nyholm commented Nov 25, 2017

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets
Documentation
License MIT

What's in this PR?

This will avoid us requiring symfony/symfony

composer.json Outdated
"phpunit/php-token-stream": "^1.1.8",
"php-http/curl-client": "^1.0",
"php-http/socket-client": "^1.0",
"php-http/guzzle6-adapter": "^1.1.1",
"php-http/react-adapter": "^0.2.1",
"php-http/buzz-adapter": "^0.3",
"php-http/mock-client": "^1.0",
"symfony/phpunit-bridge": "^3.2",
"symfony/phpunit-bridge": "^3.4@rc || ^4.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

3.4 will allow PHPunit6.

Copy link
Member

Choose a reason for hiding this comment

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

that should be possible with older versions of the bridge too

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm.. I maybe got confused by this PR symfony/symfony#23952

Copy link
Member

Choose a reason for hiding this comment

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

That was merged into the 3.3 branch (I forgot to update the changelog in the PR but that was fixed after merging). ^3.3 || ^4.0 should be good here.

- php: 5.5
env: DEPENDENCIES="symfony/lts:^2"
- php: 5.5
env: DEPENDENCIES="symfony/lts:^3"
Copy link
Contributor

Choose a reason for hiding this comment

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

This allows some dependencies to be installed in their 2.x version. Is that wanted?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, That is fine.

.travis.yml Outdated
env: DEPENDENCIES="dev"

allow_failures:
# Latest beta is allowed to fail.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not beta but dev-master.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you

.travis.yml Outdated
@@ -24,26 +18,47 @@ branches:
matrix:
fast_finish: true
include:
# Minimum supported PHP and Symfony version
Copy link
Contributor

Choose a reason for hiding this comment

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

Here PHP is the highest available version

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

So maybe a comment like Test latest PHP version with lowest dependencies would be more accurate.

Copy link
Member

@xabbuh xabbuh left a comment

Choose a reason for hiding this comment

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

I would run vendor/bin/simple-phpunit install in the install step to not pollute the test output with the installation of the bridge's dependencies (the install step output will be collapsed by default).

@Nyholm
Copy link
Member Author

Nyholm commented Nov 26, 2017

Thank you. I did not know you could

@fbourigault
Copy link
Contributor

I restarted a job because it failed with a disk quota exceeded message. Build is now green.

@Nyholm Nyholm merged commit d3edb4e into php-http:master Nov 27, 2017
@Nyholm
Copy link
Member Author

Nyholm commented Nov 27, 2017

Thank you for the review

@Nyholm Nyholm deleted the travis branch November 27, 2017 07:45
env:
global:
- TEST_COMMAND="composer test"
- SYMFONY_PHPUNIT_VERSION="6.3"
Copy link
Member

Choose a reason for hiding this comment

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

Did tests fail without exposing this environment variable? The bridge should pick the best PHPUnit version automatically if you don't do it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it did. It was some issues with mattiasnoback/config-test.

Copy link
Contributor

Choose a reason for hiding this comment

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

Have you more details on those issues? I could look at it and maybe fix those in the library and so remove those variables from our travis file.

- php: 7.1
env: DEPENDENCIES="minimum" COVERAGE=true TEST_COMMAND="composer test-ci" SYMFONY_DEPRECATIONS_HELPER="weak" SYMFONY_PHPUNIT_VERSION="5.7"

# Test the latest stable release
- php: 5.5
Copy link
Member

Choose a reason for hiding this comment

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

Not sure you need this job. There are two other jobs making use of PHP 5.5.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hm, maybe you are correct.

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.

3 participants