Skip to content

Remove srcDir from the Configuration.#127

Merged
tmatsuo merged 1 commit intomasterfrom
refactoring
Dec 7, 2015
Merged

Remove srcDir from the Configuration.#127
tmatsuo merged 1 commit intomasterfrom
refactoring

Conversation

@tmatsuo
Copy link
Collaborator

@tmatsuo tmatsuo commented Dec 4, 2015

We still need to keep it in CoverallsConfiguration for compatibility.

Fixes #126.

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 4, 2015

@keradus @bshaffer

Please take a look.

@bshaffer
Copy link

bshaffer commented Dec 4, 2015

how do you set the path to your src?

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 4, 2015

@bshaffer

Actually, you don't need to set the src path at all. phpunit knows which files to measure the coverage, and coveralls will remove the project dir's full path from the files, then report relative paths of the files to coveralls.

So RootDir is now more important. We are going to change the RootDir detection with #124 FYI.

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 4, 2015

@bshaffer
FYI, this commit:
2fbf803

makes src_dir orphaned. I confirmed this with @satooshi so I'm 100% sure :)

@bshaffer
Copy link

bshaffer commented Dec 5, 2015

that's great! LGTM

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 5, 2015

Alright, I'll wait @keradus for his review

@keradus
Copy link
Member

keradus commented Dec 5, 2015

We still need to keep it in CoverallsConfiguration for compatibility.

  1. please, send PR with that change which breaks BC
  2. project does not released v1.0, then all BC breaks aren't considered as BC breaks.

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 5, 2015

@keradus Hm, but I don't want to receive many issues with errors about 'src_dir'. I'll include a notice in the changelog with the next release 0.7 and I'll remove that entirely in the release after that 0.8 (or 0.7.1).

@keradus
Copy link
Member

keradus commented Dec 5, 2015

That is why I have asked for second PR in the first place.
It is common to have not only one current version. You can have fev branches, like 0.7, 0.8 and master (aliased to 1.0-dev).

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 5, 2015

@keradus
The second pull request will just fail without this change. Let me create the second one after merging this.

@tmatsuo tmatsuo mentioned this pull request Dec 5, 2015
@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 5, 2015

Re: branches, yeah, I will definitely create 0.7.0 branch when we release it.

@keradus
Copy link
Member

keradus commented Dec 5, 2015

0.7, no sense to create branch wich patch version in name.

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 5, 2015

true

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 5, 2015

@keradus
Does the change look good?

@keradus
Copy link
Member

keradus commented Dec 6, 2015

dunno, still waiting for creating second branch for which you will send second PR.
That two PRs should be reviewed in same time.

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 6, 2015

@keradus

I don't think it's worthwhile to create that branch now, but I created another PR for removing src_dir from CoverallsConfiguration at #136

Please take a look.

Copy link
Member

Choose a reason for hiding this comment

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

it is the removed srcDir?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, it's a different thing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, but $this->srcDir is not used in assertConfiguration any more. I'll remove this.

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 6, 2015

@keradus
Alright, removed un-used $srcDir from the test helper. Please take another look.

@keradus
Copy link
Member

keradus commented Dec 6, 2015

👍

We still need to keep it in CoverallsConfiguration for compatibility.

Fixes #126.
@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 6, 2015

@keradus Thanks for the review. I just squashed the commits and will merge once travis builds become all green. BTW travis is in weird state, no builds started.

@keradus
Copy link
Member

keradus commented Dec 6, 2015

try to disable push hook and see then

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 7, 2015

Tried several things, restart, disabling push hook, etc, but no luck yet.
Filed: travis-ci/travis-ci#5240

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 7, 2015

I'm going to start setting CircleCI builds. CircleCI is anyways a big service that we want to support, so it makes sense to set it up anyways.

@keradus
Copy link
Member

keradus commented Dec 7, 2015

I can convirm that Travis has some problem today. On .com version too.
CircleCI as addition to Travis or replacement?

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 7, 2015

I'm thinking just an addition

@keradus
Copy link
Member

keradus commented Dec 7, 2015

👍 for addition

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 7, 2015

It turned out that it's kinda difficult to get build matrix on CircleCI so I'm going to pick one environment. I'm thinking to have 5.3.3 with --prefer-lowest --prefer-stable.

What do you think?

@keradus
Copy link
Member

keradus commented Dec 7, 2015

First say why you want to use CircleCI.? Way of usage depends on what you need.

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 7, 2015

Yeah, for short term, I want to get sanity by seeing green builds. For a longer term, I want to make sure our CircleCI support is working.

@keradus
Copy link
Member

keradus commented Dec 7, 2015

For first reason - as long as Travis will run all PHP version it is ok to have only one PHP version on CircleCI.
For second reason - yeah, one PHP is enough

@tmatsuo tmatsuo added this to the v0.7 milestone Dec 7, 2015
@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 7, 2015

Travis is back to normal. Merging this.

@tmatsuo
Copy link
Collaborator Author

tmatsuo commented Dec 7, 2015

Thanks for the review @keradus !

tmatsuo pushed a commit that referenced this pull request Dec 7, 2015
Remove srcDir from the Configuration.
@tmatsuo tmatsuo merged commit 5b8cf9c into master Dec 7, 2015
@tmatsuo tmatsuo deleted the refactoring branch December 7, 2015 23:33
Taluu added a commit to Taluu/Totem that referenced this pull request Dec 25, 2015
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