xwp / wp-dev-lib

DEPRECATED. Common code used during development of WordPress plugins and themes
MIT License
279 stars 58 forks source link

Files not scanned - Bitbucket Pipeline #232

Open glewiswp opened 7 years ago

glewiswp commented 7 years ago

I'm attempting to set this up using a Bitbucket pipeline and it looks like travis.script.sh fires up but PHPCS never scans any files, like the .diff file is not being read properly inside of check-diff.sh. travis.install.sh runs without any issues but when I hit travis.script.sh in the execution the tests always return the following:

source $DEV_LIB_PATH/travis.script.sh
## Checking files, scope patches:

Skipping codeception since not configured

I've tried both install methods (submodule/non) and both return the same results. I've also tried setting the CHECK_SCOPE environment variable to changed-files but same result.

Maybe I'm overlooking something obvious, or maybe wp-dev-lib doesn't work properly with Bitbucket pipelines?

westonruter commented 7 years ago

@glewiswp it has never been tested with Bitbucket pipelines, no.

You can see that there are some specific Travis environment variables that are read here: https://github.com/xwp/wp-dev-lib/blob/74c9cebc478ab377e84cec8d92e9f499db9db8e0/check-diff.sh#L58-L75

If you can open a PR with the equivalents for Bitbucket then it should work.