From 501b9ae5d61180e386d803bad58b4f264fa0546e Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 21 Feb 2016 16:41:11 +0000 Subject: [PATCH] Add build script --- circle.yml | 4 ++-- scripts/build | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 scripts/build diff --git a/circle.yml b/circle.yml index d63a112..60cae5d 100644 --- a/circle.yml +++ b/circle.yml @@ -1,10 +1,10 @@ machine: node: - version: 5.2.0 + version: 5.5.0 dependencies: pre: - - npm install + - scripts/build test: override: diff --git a/scripts/build b/scripts/build new file mode 100644 index 0000000..38e8171 --- /dev/null +++ b/scripts/build @@ -0,0 +1,14 @@ +#!/bin/bash + +if [ -z "$NVM_DIR" ] +then + NVM_DIR="~/.nvm" +fi + +. $NVM_DIR/nvm.sh +nvm install +nvm use + +set -e + +npm install