From aa1a7dee748172a95684ef464312dfbc56e5a8c3 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 14 Jan 2017 20:53:06 +0000 Subject: [PATCH] Add build script --- .nvmrc | 2 +- circle.yml | 10 +++++----- scripts/build | 18 ++++++++++++++++++ scripts/run-build-server.sh | 0 4 files changed, 24 insertions(+), 6 deletions(-) create mode 100755 scripts/build mode change 100644 => 100755 scripts/run-build-server.sh diff --git a/.nvmrc b/.nvmrc index 4e32c7b..c250d84 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -5.10.1 +6.9.4 diff --git a/circle.yml b/circle.yml index e0f81bc..8fd641b 100644 --- a/circle.yml +++ b/circle.yml @@ -14,10 +14,10 @@ checkout: - git submodule update --init --recursive dependencies: - post: - - pelican -v - + override: + - scripts/build + - pelican -v test: - override: - - scripts/test + override: + - scripts/test diff --git a/scripts/build b/scripts/build new file mode 100755 index 0000000..71635b4 --- /dev/null +++ b/scripts/build @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +if [ -z "$NVM_DIR" ] +then + NVM_DIR="$HOME/.nvm" +fi + +. $NVM_DIR/nvm.sh +nvm install +nvm use + +set -e + +pyvenv env + +env/bin/pip install -r requirements.txt + +npm install diff --git a/scripts/run-build-server.sh b/scripts/run-build-server.sh old mode 100644 new mode 100755