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

Question about build lifecycle #1392

Closed
troyswanson opened this issue Sep 2, 2013 · 3 comments

Comments

Projects
None yet
2 participants
@troyswanson
Copy link

commented Sep 2, 2013

According to the build lifecycle docs, before_install is supposed to run before the system cd's into the clone directory.

In my experience, before_install runs after that happens. Am I missing something?

Sorry for such a simple question but I can't figure out what the difference between before_install and before_script is.

@roidrage

This comment has been minimized.

Copy link
Contributor

commented Sep 2, 2013

Sorry, it seems our doc is slightly out of date in this regard. I'll get it updated.

before_install runs before the install step, which is meant to install any required packages or dependencies. You can prepare things before you run this step, or you can e.g. run sudo apt-get update to refresh the apt indexes.

before_script runs before the actual test/build script runs. It's commonly used to run any preparation steps required to get the build running, for instance copy database configurations, set up any additional environment configuration, and so on.

@troyswanson

This comment has been minimized.

Copy link
Author

commented Sep 2, 2013

@roidrage Thanks so much for your ultra fast response! Will experiment more 🤘

@troyswanson troyswanson closed this Sep 2, 2013

@troyswanson

This comment has been minimized.

Copy link
Author

commented Sep 2, 2013

Hi @roidrage - I just submitted a pull request at travis-ci/travis-ci.github.com#333 that may help. Feel free to comment on that PR if you have any additional suggestions. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.