From 2986b241c41afb52bfd9ffa74c77aeabc12ff77b Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Tue, 2 Feb 2016 15:44:41 +0000 Subject: [PATCH] Add jenkins.sh for builds --- jenkins.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 jenkins.sh diff --git a/jenkins.sh b/jenkins.sh new file mode 100644 index 0000000000..61441fb736 --- /dev/null +++ b/jenkins.sh @@ -0,0 +1,9 @@ +#!/bin/bash -l +export NVM_DIR="/home/jenkins/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" +nvm use 4 +npm install +(cd node_modules/matrix-react-sdk && npm run build) # npm doesn't do this when dependencies point at github.com >:( +npm run build # Dumps artificats to /vector +rm vector-build.tar.gz || true # rm previous artifacts without failing if it doesn't exist +tar -zcvhf vector-build.tar.gz vector #g[z]ip, [c]reate archive, [v]erbose, [f]ilename, [h]ard-dereference (do not archive symlinks)