-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
CI, better tests, bugfixes and cleaning #103
Conversation
Why do you close this? |
I just wanted a feedback, if it is ok I can keep PR open. I have some ideas to make tests better and drop some dependencies, because in my view this package can live without them. |
by the way, builds for Laravel 5.6 are failing in master due to illuminate/database requirement (as I understand) |
Every contribution for improvements is accepted |
Which dependencies do you want to drop? |
We can bump the minimum Laravel version (-> 5.7) |
as sum up of my audit of the code
what i have done
latest build https://travis-ci.org/github/yurii-github/compoships/builds/738894383 i wonder what you say. only after we agree or disagree on further move/plans I continue with morph support. see you p.s. about dropping support up to 5.7 - for me it is vital to keep 5.6 support as I personally depend on it in one way or another. |
$this->child->setAttribute($foreignKey, $value); | ||
} | ||
// BC break in 5.8 : /~https://github.com/illuminate/database/commit/87b9833019f48b88d98a6afc46f38ce37f08237d | ||
$relationName = property_exists($this, 'relationName') ? $this->relationName : $this->relation; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe throw error if 'relation' does not exist too
Sorry for the delay. I'm very busy on weekdays. Thanks for the improvements. I'll check them during the weekend and give feedback |
hello
I will add some more tests to cover my cases, and that's probably it. https://travis-ci.com/github/yurii-github/compoships/builds/195171843 |
- added Travis CI support - added Codeclimate support - better PHPUnit config
- made tests as namespaced - fix composer.json with proper dependencies - drop support for service provider hook as it is bloatware - added support for several PHPUnit versions
f1267ae
to
53dc79d
Compare
Wow!! That's a lot of contributions. Thanks! |
Can you please update the README for the steps required to run the tests? |
good day |
c51c380
to
4ebd604
Compare
I have finished with my changes. I have unresolved only 1 thing - I don't know how to forbid user to install illuminate/database 5.6 with PHP 7.3+, because it is laravel issue. maybe some note in readme is enough, I don't know Also, there is place for improvement like test coverage, because this project is still very risky in sense of changes and tweaks it provides. regards FINAL CHANGELOGChanges
Fixes
Tests
|
d2d82d2
to
c6bc098
Compare
c6bc098
to
28ebcc0
Compare
Very nice! I'll give you feedback before next week. |
All good! There are some unused variables in the tests but that's not an issue (we can clear them later). |
hello. thank you for the feedback
I guess it is directly related to this issue #98 in any case, I have granted you write access to this PR branch, you can change everything you want and I will continue on master after. regards |
Merged! You can go ahead for the PR regarding #98 |
thanks. Small question.. how do I fit code into this styleci.io ? is there any local tool to autofix it? |
It provides a diff/patch file you can apply to the code using the |
I see. thank you |
some current ideas I have to improve.
I wonder what do you think about it. If you don't mind I can keep this PR open like work in progress.