This repository has been archived by the owner on Jun 15, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace circle config with teamCity build script
- Loading branch information
Franziska Sauerwein
committed
Sep 5, 2018
1 parent
f56eda1
commit f1e02cb
Showing
2 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
#!/usr/bin/env bash | ||
|
||
NODE_VERSION="5" | ||
|
||
# check if nvm is available or not | ||
nvm_available() { | ||
type -t nvm > /dev/null | ||
} | ||
|
||
# source NVM from known locations (it's not a binary so not on the path) | ||
source_nvm() { | ||
if ! nvm_available; then | ||
[ -e "/usr/local/opt/nvm/nvm.sh" ] && source /usr/local/opt/nvm/nvm.sh | ||
fi | ||
if ! nvm_available; then | ||
[ -e "$HOME/.nvm/nvm.sh" ] && source $HOME/.nvm/nvm.sh | ||
fi | ||
} | ||
|
||
# do the client side build | ||
source_nvm | ||
nvm_available && nvm install ${NODE_VERSION} && nvm use ${NODE_VERSION} | ||
|
||
npm install -g bower | ||
bower install | ||
./setup.sh | ||
|
||
npm install | ||
npm test |