Created
February 7, 2015 18:20
-
-
Save megawac/5e1eb4bb0897c8410ce5 to your computer and use it in GitHub Desktop.
marionette-travis script
This file contains 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
#!/bin/bash | |
npm install -g grunt-cli | |
npm install | |
npm dedupe | |
if [[ -n "$UNDERSCORE" ]] | |
then | |
npm install underscore@"$UNDERSCORE" | |
fi | |
if [[ -n "$BACKBONE" ]] | |
then | |
npm install backbone@"$BACKBONE" | |
fi | |
if [[ -n "$LODASH" ]] | |
then | |
npm install lodash@"$LODASH" | |
# Lodash@2 and Lodash@3 have different file structures | |
if [[ "$LODASH" < "3.0" ]] | |
then | |
mv node_modules/lodash/lodash.js node_modules/underscore/underscore.js | |
else | |
mv node_modules/lodash/index.js node_modules/underscore/underscore.js | |
fi | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment