Skip to content
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

Change Travis build and Composer lock to track extra dev dependencies #7333

Merged
merged 1 commit into from
Jul 3, 2015
Merged

Change Travis build and Composer lock to track extra dev dependencies #7333

merged 1 commit into from
Jul 3, 2015

Conversation

mbabker
Copy link
Contributor

@mbabker mbabker commented Jul 3, 2015

Instead of having Travis download and install extra dev dependencies, this changes the build process to include those dependencies in our composer.lock file (so in theory all Travis has to do is clone the source).

This has already run at https://travis-ci.org/mbabker/joomla-cms/builds/69462829 and built successfully.

@@ -30,7 +30,7 @@
JLoader::registerPrefix('J', JPATH_PLATFORM . '/cms', false, true);

// Create the Composer autoloader
$loader = require_once JPATH_LIBRARIES . '/vendor/autoload.php';
$loader = require JPATH_LIBRARIES . '/vendor/autoload.php';
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this change? I don't understand.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If you require a file once, subsequent requires return a boolean true. Running PHPUnit with this changed caused a "Call to a member function unregister() on a non-object" message. This ensures that every time this file is called at this point, we get the returned autoloader object and not a boolean value.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, learned something again 😄

Bakual pushed a commit that referenced this pull request Jul 3, 2015
Change Travis build and Composer lock to track extra dev dependencies
@Bakual Bakual merged commit 6fb101e into joomla:staging Jul 3, 2015
@mbabker mbabker deleted the travisBuild branch July 3, 2015 17:13
@zero-24 zero-24 added this to the Joomla! 3.4.4 milestone Jul 3, 2015
@smz
Copy link
Contributor

smz commented Jul 4, 2015

A new branch RemoveGitterFromTravis appeared in joomla/joomla-cms: is it related to this?

@Bakual
Copy link
Contributor

Bakual commented Jul 4, 2015

Nah, that's stupid me doing a PR from the wrong repo.
Since Travis passed the PR, I have now merged it and deleted the branch 😄

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.

5 participants