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