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

travis build #1

Merged
merged 5 commits into from
Apr 26, 2017
Merged

travis build #1

merged 5 commits into from
Apr 26, 2017

Conversation

ashnazg
Copy link
Member

@ashnazg ashnazg commented Mar 22, 2017

This run-installer.sh script works for me on Ubuntu Trusty using PHP 5.5 and 5.6. It successfully runs the go-pear.phar installation without requiring user input.

What I cannot figure out is why Travis appears to run it cleanly, but then doesn't have the PEAR installation available.

Right now, the invocation of the run-installer.sh should be doing the install. The later php go-pear.phar is solely to show you the paths it defaults to, which is presumably where the first invocation should have installed it. Note the build will get stuck here, waiting for user input, so it must be manually canceled or else wait until Travis time-limits the build and kills it.

@kenguest , @till , @cweiske , could you guys try out the run-installer.sh script locally to confirm it works in your environments?

More importantly, who could shed some light on why Travis is behaving like it does? I don't understand why the PEAR installation doesn't properly appear in /home/travis/pear, based on the default pathing shown.

.travis.yml Outdated
- pear uninstall xml_util structures_graph archive_tar console_getopt pear
- which pear
- ./run-installer.sh
- find ~ -name pear -print
Copy link
Member

Choose a reason for hiding this comment

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

I think everything up until this line should be in an install: target.

Copy link
Member Author

Choose a reason for hiding this comment

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

Does that make a difference on how the shell runs them?

Copy link
Member

Choose a reason for hiding this comment

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

@ashnazg yeah, by not utilizing the targets, Travis-CI will execute its defaults. Needless roundtrips and cycles wasted. That's all! :)

@till
Copy link
Member

till commented Mar 31, 2017

@ashnazg I just saw your other questions (sorry for the slow response). Is that still a problem?

My guess is that the php-env stuff probably does things a little different. But let me know if you need more help figuring this out.

@ashnazg ashnazg merged commit e0967d7 into pear:master Apr 26, 2017
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.

2 participants