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

Commit 7ec8b5a

Browse files
authored
Merge pull request #523 from guardian/teamCity
Migrate circle ci to teamCity
2 parents f56eda1 + f1e02cb commit 7ec8b5a

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

circle.yml

-9
This file was deleted.

teamCity.sh

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
3+
NODE_VERSION="5"
4+
5+
# check if nvm is available or not
6+
nvm_available() {
7+
type -t nvm > /dev/null
8+
}
9+
10+
# source NVM from known locations (it's not a binary so not on the path)
11+
source_nvm() {
12+
if ! nvm_available; then
13+
[ -e "/usr/local/opt/nvm/nvm.sh" ] && source /usr/local/opt/nvm/nvm.sh
14+
fi
15+
if ! nvm_available; then
16+
[ -e "$HOME/.nvm/nvm.sh" ] && source $HOME/.nvm/nvm.sh
17+
fi
18+
}
19+
20+
# do the client side build
21+
source_nvm
22+
nvm_available && nvm install ${NODE_VERSION} && nvm use ${NODE_VERSION}
23+
24+
npm install -g bower
25+
bower install
26+
./setup.sh
27+
28+
npm install
29+
npm test

0 commit comments

Comments
 (0)