mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Change jenkins script to package script
Take the useful part of the jenkins script and put it in a script that makes a package with the git hashes as its version.
This commit is contained in:
parent
cc5911b4aa
commit
1b8583fa51
@ -1,25 +1,12 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Runs package.sh setting the version to git hashes of the riot-web,
|
||||||
|
# react-sdk & js-sdk checkouts, for the case where these dependencies
|
||||||
|
# are git checkouts.
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export NVM_DIR="$HOME/.nvm"
|
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
|
|
||||||
nvm use 10
|
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# check out corresponding branches of dependencies.
|
|
||||||
# clone the deps with depth 1: we know we will only ever need that one commit.
|
|
||||||
`dirname $0`/fetch-develop.deps.sh --depth 1
|
|
||||||
|
|
||||||
yarn install
|
|
||||||
|
|
||||||
# run the mocha tests
|
|
||||||
yarn test
|
|
||||||
|
|
||||||
# run eslint
|
|
||||||
yarn lintall -- -f checkstyle -o eslint.xml || true
|
|
||||||
|
|
||||||
rm dist/riot-*.tar.gz || true # rm previous artifacts without failing if it doesn't exist
|
rm dist/riot-*.tar.gz || true # rm previous artifacts without failing if it doesn't exist
|
||||||
|
|
||||||
# Since the deps are fetched from git, we can rev-parse
|
# Since the deps are fetched from git, we can rev-parse
|
Loading…
Reference in New Issue
Block a user