Skip to content

Commit 2986b24

Browse files
committed
Add jenkins.sh for builds
1 parent d1dc082 commit 2986b24

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

‎jenkins.sh‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash -l
2+
export NVM_DIR="/home/jenkins/.nvm"
3+
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
4+
nvm use 4
5+
npm install
6+
(cd node_modules/matrix-react-sdk && npm run build) # npm doesn't do this when dependencies point at github.com >:(
7+
npm run build # Dumps artificats to /vector
8+
rm vector-build.tar.gz || true # rm previous artifacts without failing if it doesn't exist
9+
tar -zcvhf vector-build.tar.gz vector #g[z]ip, [c]reate archive, [v]erbose, [f]ilename, [h]ard-dereference (do not archive symlinks)

0 commit comments

Comments
 (0)