Skip to content

Added .travis.yml #4

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

Closed
wants to merge 3 commits into from
Closed

Added .travis.yml #4

wants to merge 3 commits into from

Conversation

linaori
Copy link
Contributor

@linaori linaori commented Aug 25, 2015

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #2
License MIT
Doc PR ~

Same .travis.yml as I've used for the AclBundle, except that I've added 5.3 and 5.4.

@linaori
Copy link
Contributor Author

linaori commented Sep 15, 2015

ping @nicolas-grekas

matrix:
include:
- php: 5.3
env: COMPOSER_FLAGS="--prefer-lowest"
Copy link
Member

Choose a reason for hiding this comment

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

--prefer-lowest needs --prefer-stable also, so you don't test with alpha/beta versions
imo, the best practice is to combine -prefer-lowest with the highest PHP version, so that you're sure that your lowest deps still work with the latest PHP

@nicolas-grekas
Copy link
Member

I think you could set COMPOSER_ROOT_VERSION for better reliability of deps

@stof
Copy link
Member

stof commented Dec 2, 2015

@iltar can you finish this ?

@stof
Copy link
Member

stof commented Dec 2, 2015

@fabpot please enable Travis on the repo (configuring it to skip builds which don't have a config file)

@stof
Copy link
Member

stof commented Dec 2, 2015

OK, it is actually enabled.

@linaori
Copy link
Contributor Author

linaori commented Dec 2, 2015

@stof yeah I can finish this, I'm just not sure if this is the right setup. I compared the file to other symfony (non-readonly) repos and it differs a lot. Maybe @wouterj can provide a bit of help here?

- php: 5.3
env: COMPOSER_FLAGS="--prefer-lowest"
- php: 5.4
- 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.

I would keep them included using the normal way to build the matrix when there is nothing special to set, as done in MonologBundle: https://github.com/symfony/monolog-bundle/blob/master/.travis.yml

@stof
Copy link
Member

stof commented Dec 2, 2015

@iltar I suggest you to inspire you from the MonologBundle one (notice that the composer.json does not have minimum-stability: dev by default). It makes better use of the Travis cache

@linaori
Copy link
Contributor Author

linaori commented Dec 2, 2015

Alright, I will update the PR tomorrow morning when I have some time.

@linaori
Copy link
Contributor Author

linaori commented Dec 3, 2015

@stof I have taken the monolog-bundle as example, but made a minor modification to the versions tested as I got version conflicts with 2.7/2.8 and removed 2.3.

install:
- composer update $COMPOSER_FLAGS

script: phpunit -v --coverage-text
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we should run each job with code coverage enabled. Having one dedicated coverage job (if we really want one) should be enough. The other advantage of that is that we could also disable Xdebug for all other jobs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't mind disabling it for all, not sure how important coverage is tbh. How would I turn off xdebug?

Copy link
Member

Choose a reason for hiding this comment

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

@linaori
Copy link
Contributor Author

linaori commented Dec 8, 2015

@xabbuh this PR has been open for a while, back then there were no branches for different version. I suppose the master is 3.0 just like with the other versions. Maybe I should open a PR for 2.7, have it fixed there and have that merged into 2.8 and then 3.0 instead?

@stof
Copy link
Member

stof commented Dec 8, 2015

@iltar the 2.7 branch is still the automatic subtree split, so you should not make any change in it. 2.8 is the right target

@linaori
Copy link
Contributor Author

linaori commented Dec 8, 2015

@stof so would I do best to close this one and reopen it against 2.8? I'm not sure what the best flow is here but I thought it was merging into the lowest possible version and merging that into higher versions.

@xabbuh
Copy link
Member

xabbuh commented Dec 8, 2015

@iltar This is open against the 2.8 branch. :)

@linaori
Copy link
Contributor Author

linaori commented Dec 8, 2015

@xabbuh ah my bad, got confused because of 2.7

@linaori
Copy link
Contributor Author

linaori commented Dec 8, 2015

@stof / @xabbuh I have updated the file and it seems to work.

@xabbuh
Copy link
Member

xabbuh commented Dec 10, 2015

Should we use the PHPUnit version provided by Travis or should we choose our own to have a better control which version is used to execute tests?

@linaori
Copy link
Contributor Author

linaori commented Apr 15, 2016

ping, what's the status for this?

@xabbuh
Copy link
Member

xabbuh commented Dec 21, 2016

I guess we should also use the simple-phpunit wrapper provided by the PHPUnitBridge.

@stof
Copy link
Member

stof commented Dec 21, 2016

@xabbuh this is not strictly necessary, as security-acl does not depend on Yaml and so does not care if PHPUnit brings the 3.1 version all the time currently.

@linaori
Copy link
Contributor Author

linaori commented Dec 21, 2016

True, but what if we do use the wrapper just for consistency?

@derrabus
Copy link
Member

Closing in favor of #66.

@derrabus derrabus closed this Apr 23, 2021
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.

6 participants