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

Commit

Permalink
Merge pull request #523 from guardian/teamCity
Browse files Browse the repository at this point in the history
Migrate circle ci to teamCity
  • Loading branch information
jukecraft authored Sep 7, 2018
2 parents f56eda1 + f1e02cb commit 7ec8b5a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
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

0 comments on commit 7ec8b5a

Please sign in to comment.