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

Speedup travis install src test #1498

Merged
merged 2 commits into from Apr 13, 2017

Conversation

PeterDaveHello
Copy link
Collaborator

Fix #1489, Travis CI cache needs curl

.travis.yml Outdated
@@ -31,6 +31,7 @@ script:
- if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash nvm.sh && shellcheck -s sh nvm.sh && shellcheck -s dash nvm.sh && shellcheck -s ksh nvm.sh ; fi
- if [ -n "${SHELLCHECK-}" ]; then shellcheck -s bash install.sh bash_completion nvm-exec ; fi
- if [ -n "${SHELL-}" ] && [ -n "${TEST_SUITE}" ]; then make TEST_SUITE=$TEST_SUITE URCHIN="$(npm bin)/urchin" test-$SHELL ; fi
- if [ -n "$WITHOUT_CURL" ]; then sudo apt-get install curl -y ; fi
Copy link
Member

Choose a reason for hiding this comment

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

Perhaps you mean to run this in after_success, so it only runs once, and so it's not part of "script"?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, sure, but I have to say, there are more things mixed here so sometimes I really don't know which one would you prefer to use.

Copy link
Member

Choose a reason for hiding this comment

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

things that are tests go in "script" - things that are setup go in a "before" step - things that are cleanup, or things like "aggregate coverage from all jobs" go in "after success".

@PeterDaveHello PeterDaveHello force-pushed the speedup-travis-install-src-test branch from 6404678 to 8a02606 Compare April 9, 2017 08:24
@PeterDaveHello
Copy link
Collaborator Author

Done.

@ljharb ljharb added the testing Stuff related to testing nvm itself. label Apr 13, 2017
@ljharb ljharb force-pushed the speedup-travis-install-src-test branch from 8a02606 to 7aa3448 Compare April 13, 2017 04:49
@ljharb ljharb merged commit 7aa3448 into nvm-sh:master Apr 13, 2017
@PeterDaveHello PeterDaveHello deleted the speedup-travis-install-src-test branch April 13, 2017 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Stuff related to testing nvm itself.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants