Skip to content
This repository was archived by the owner on Jun 15, 2021. It is now read-only.

Migrate circle ci to teamCity #523

Merged
merged 1 commit into from
Sep 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions circle.yml

This file was deleted.

29 changes: 29 additions & 0 deletions teamCity.sh
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