Created
May 1, 2018 06:31
-
-
Save kaizhu256/b6de8655f81b6463a93f53232d554244 to your computer and use it in GitHub Desktop.
travis override $NODE_VERSION
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| before_install: | |
| # override $NODE_VERSION | |
| - printf "$NODE_VERSION\n" && if (printf "$CI_COMMIT_MESSAGE" | grep -qE "\bNODE_VERSION="); then nvm install "$(printf "$CI_COMMIT_MESSAGE" | sed -e "s/.*\bNODE_VERSION=//" -e "s/ .*//")" && printf "$NODE_VERSION\n" && node --version && npm --version; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment