Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

Fix UnitTest to work in CakePHP 3.2.x #34

Merged
merged 4 commits into from Feb 2, 2016
Merged

Fix UnitTest to work in CakePHP 3.2.x #34

merged 4 commits into from Feb 2, 2016

Conversation

greew
Copy link
Contributor

@greew greew commented Jan 25, 2016

No description provided.

@greew
Copy link
Contributor Author

greew commented Jan 25, 2016

The failing check is that the COVERALLS test is run on a PHP 5.4, but when updating this to run on CakePHP 3.2.x we need PHP 5.5+.
Should I "just" update the travis-ci configuration to run the test on 5.5 instead of 5.4?

@ADmad
Copy link
Collaborator

ADmad commented Jan 25, 2016

Need to update the coveralls build to use PHP 7 instead. You can refer to https://github.com/cakephp/cakephp/blob/master/.travis.yml

@@ -1,7 +1,6 @@
language: php

php:
- 5.4
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to test on 5.4 since Cake 3.0 supports it :)

@ADmad
Copy link
Collaborator

ADmad commented Jan 25, 2016

Jeez don't just copy paste the travis config from core repo. Just refer to it and make necessary changes to get the coveralls builds running.

@greew
Copy link
Contributor Author

greew commented Jan 26, 2016

Whoops.. sorry!!
I meant to play around with it in a new branch - not push it to the pull request. Sorry about that :)

@greew
Copy link
Contributor Author

greew commented Jan 27, 2016

And then...

The tests are passing and .travis.yml has been updated to reflect the newest testing as done in the core cakephp project.

Why the COVERALLS=1 test is failing, I've got no clue why.

Remove wrongly commited code
@greew
Copy link
Contributor Author

greew commented Feb 2, 2016

@AD7six Do you see any problems with this PR? If so, please let me know :)

allow_failures:
- env: COVERALLS=1 DEFAULT=0 DB=mysql db_dsn='mysql://travis@0.0.0.0/cakephp_test'


Copy link
Collaborator

Choose a reason for hiding this comment

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

Extra blank line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done :)

ADmad added a commit that referenced this pull request Feb 2, 2016
Fix UnitTest to work in CakePHP 3.2.x
@ADmad ADmad merged commit b4fa75d into AD7six:master Feb 2, 2016
@greew greew deleted the bugfix/update-to-cakephp-3.2 branch February 3, 2016 14:04
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants