-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automation of npm/yarn installation (#276)
* [travis][m]: refactored travis config for automation of npm/yarn installables + added shell script for it - refs #274 * [travis][xs]: fixed array syntax for yaml data - refs #274 * [travis][xs]: re-wrote travis config matrix otherwise listing node_js versions weren't working - refs #274 * [travis][xs]: added after_success script to test out how shell script works (will be removed later) - refs #274 * [travis][xs]: removed temporary 'after_success' script so now we're ready to open a pull request - refs #274
- Loading branch information
1 parent
2b2b79c
commit 54d937d
Showing
2 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
set -ev | ||
echo '>>> Now running shell script...' | ||
npm i -g data-cli | ||
data --version | ||
data help | ||
data info https://datahub.io/core/finance-vix | ||
|
||
echo '>>> Install data-cli with yarn...' | ||
npm uninstall -g data-cli | ||
if [ $(uname) = 'Darwin' ]; then | ||
brew install yarn | ||
else | ||
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | ||
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | ||
sudo apt-get update && sudo apt-get install yarn | ||
fi | ||
|
||
export PATH="$(yarn global bin):$PATH" | ||
yarn global add data-cli | ||
data --version | ||
data info https://datahub.io/core/finance-vix |